|
MPIO v1.6.0
Multi-platform common IO library
|
Common operating system functions. (MT-Safe). More...
#include <os.hpp>
Static Public Member Functions | |
| static double | getCurrentClock () |
| Returns high resolution time stamp in seconds. (MT-Safe). | |
| static int | getLogicalCpuCount () |
| Returns system logical CPU count. (MT-Safe). | |
| static int | getPhysicalCpuCount () |
| Returns system physical CPU count. (MT-Safe). | |
| static int | getPerformanceCpuCount () |
| Returns system performance CPU count. (MT-Safe). | |
| static int64_t | getTotalRamSize () |
| Returns system total physical RAM size. (MT-Safe). | |
| static int64_t | getFreeRamSize () |
| Returns system free physical RAM size. (MT-Safe). | |
| static string | getCpuName () |
| Returns system CPU name string. (MT-Safe). | |
| static int | executeFile (const char *filePath, char **args) noexcept |
| Executes specified file with arguments. (MT-Safe). | |
| static int | executeFile (const char *filePath, va_list args) noexcept |
| Executes specified file with arguments. (MT-Safe). | |
| static int | executeFile (const char *filePath,...) noexcept |
| Executes specified file with arguments. (MT-Safe). | |
| static bool | openFileManager (const string &path) |
| Opens file using preferred application. (Explorer, Finder, Browser, etc.). | |
| static void | showError (const string &title, const string &message) |
| Shows system error message. (Window or popup). | |
Common operating system functions. (MT-Safe).
See the os.h
|
inlinestatic |
Returns high resolution time stamp in seconds. (MT-Safe).
See the getCurrentClock().
|
inlinestatic |
Returns system logical CPU count. (MT-Safe).
See the getLogicalCpuCount().
| Error | if failed to get logical CPU count. |
|
inlinestatic |
Returns system physical CPU count. (MT-Safe).
See the getPhysicalCpuCount().
| Error | if failed to get physical CPU count. |
|
inlinestatic |
Returns system performance CPU count. (MT-Safe).
See the getPerformanceCpuCount().
| Error | if failed to get performance CPU count. |
|
inlinestatic |
Returns system total physical RAM size. (MT-Safe).
See the getTotalRamSize().
| Error | if failed to get total RAM size. |
|
inlinestatic |
Returns system free physical RAM size. (MT-Safe).
See the getFreeRamSize().
| Error | if failed to get free RAM size. |
|
inlinestatic |
Returns system CPU name string. (MT-Safe).
See the getCpuName().
| Error | if failed to get CPU name. |
|
inlinestaticnoexcept |
Executes specified file with arguments. (MT-Safe).
See the executeFileA().
| [in] | filePath | file path string |
| args | program arguments |
|
inlinestaticnoexcept |
Executes specified file with arguments. (MT-Safe).
See the executeFileVA().
| [in] | filePath | file path string |
| args | program arguments |
|
inlinestaticnoexcept |
Executes specified file with arguments. (MT-Safe).
See the executeFileVA().
| [in] | filePath | file path string |
| args | program arguments |
|
inlinestatic |
Opens file using preferred application. (Explorer, Finder, Browser, etc.).
See the executeFileVA().
| [in] | path | directory or file path string |
Shows system error message. (Window or popup).
See the showError().
| [in] | title | message title string |
| [in] | message | error message string |