|
AndroMeta
2.0.0
|
A platform independent and easy-to-use system interface. More...
#include <MSys.h>
Static Public Member Functions | |
| static mvar | sysInfo () |
| static mstr | hostname () |
| static mstr | joinPath (const mstr &path, const mstr &ext) |
| static mstr | basename (const mstr &path) |
| static mstr | parentDirectory (const mstr &path) |
| static bool | makeDir (const mstr &path) |
| static mstr | tempPath () |
| static mstr | tempFilePath (const mstr &extension="") |
| static long | processId () |
| static bool | exists (const mstr &path) |
| static double | cpuBenchmark1 () |
| static mstr | currentDir () |
| static bool | getEnv (const mstr &key, mstr &value) |
| static bool | setEnv (const mstr &key, const mstr &value, bool redef=true) |
| static void | setTimeZone (const mstr &zone) |
| static mstr | hiddenInput () |
| static bool | rename (const mstr &sourcePath, const mstr &destPath) |
| static mstr | fileExtension (const mstr &filePath) |
| static mstr | normalizePath (const mstr &path) |
| static mstr | stripPath (const mstr &path) |
A platform independent and easy-to-use system interface.
| static mstr Meta::MSys::basename | ( | const mstr & | path | ) | [static] |
| static double Meta::MSys::cpuBenchmark1 | ( | ) | [static] |
Run a CPU-intensive benchmark.
| static mstr Meta::MSys::currentDir | ( | ) | [static] |
| static bool Meta::MSys::exists | ( | const mstr & | path | ) | [static] |
| static mstr Meta::MSys::fileExtension | ( | const mstr & | filePath | ) | [static] |
Extract the filename extension from a path.
| static bool Meta::MSys::getEnv | ( | const mstr & | key, |
| mstr & | value | ||
| ) | [static] |
Get an environment variable's value.
| key | The environment variable name. |
| value | On output, the value the environment variable holds. |
| static mstr Meta::MSys::hiddenInput | ( | ) | [static] |
Useful for reading password from the terminal.
| static mstr Meta::MSys::hostname | ( | ) | [static] |
| static mstr Meta::MSys::joinPath | ( | const mstr & | path, |
| const mstr & | ext | ||
| ) | [static] |
| static bool Meta::MSys::makeDir | ( | const mstr & | path | ) | [static] |
Make a directory path.
| static mstr Meta::MSys::normalizePath | ( | const mstr & | path | ) | [static] |
| static mstr Meta::MSys::parentDirectory | ( | const mstr & | path | ) | [static] |
| static long Meta::MSys::processId | ( | ) | [static] |
| static bool Meta::MSys::rename | ( | const mstr & | sourcePath, |
| const mstr & | destPath | ||
| ) | [static] |
Rename/move sourcePath to destPath.
| static bool Meta::MSys::setEnv | ( | const mstr & | key, |
| const mstr & | value, | ||
| bool | redef = true |
||
| ) | [static] |
Set an environment variable's value.
| key | The environment variable name. |
| value | The value to assign the environment variable to. |
| redef | true if value is to be redefined if environment variable already exists. |
| static void Meta::MSys::setTimeZone | ( | const mstr & | zone | ) | [static] |
Set the time zone that the current process uses.
| zone | A valid UNIX TZ environment variable specification. |
| static mstr Meta::MSys::stripPath | ( | const mstr & | path | ) | [static] |
| static mvar Meta::MSys::sysInfo | ( | ) | [static] |
| static mstr Meta::MSys::tempFilePath | ( | const mstr & | extension = "" | ) | [static] |
| extension | Filename extension, .e.g: "txt" |
| static mstr Meta::MSys::tempPath | ( | ) | [static] |
1.7.6.1