System Class Reference
Various system-level utility functions.
More...
#include <System.h++>
List of all members.
Detailed Description
Various system-level utility functions.
- Author:
- Mark Lindner
Member Function Documentation
| time_s_t currentTime |
( |
|
) |
throw () [static] |
Get the system time, in seconds since the epoch.
Get the system time, in milliseconds since the epoch.
| bool delEnvVariable |
( |
const String & |
name |
) |
throw () [static] |
Delete (unset) an environment variable.
- Parameters:
-
| name | The name of the variable. |
- Returns:
- true on success, false otherwise.
| String getArchitecture |
( |
|
) |
[static] |
Get the name of the host system architecture.
Get the value of an environment variable.
- Parameters:
-
| name | The name of the variable. |
- Returns:
- The value of the variable, or String::null if it is not defined.
Get the system error message string for the most recent error.
- Parameters:
-
| text | Optional text to prepend to the resulting message. |
- Returns:
- The error message.
| String getHomeDir |
( |
|
) |
[static] |
Get the current user's home directory.
| String getHostName |
( |
|
) |
[static] |
Get the name of the host OS.
| String getOSVersion |
( |
|
) |
[static] |
Get the version of the host OS.
| size_t getPageSize |
( |
|
) |
throw () [static] |
Get the system page size.
| String getTempDir |
( |
|
) |
[static] |
Get the system temporary directory.
| String getUserName |
( |
|
) |
[static] |
Get the username of the current user.
| bool isMacOSX |
( |
|
) |
throw () [static] |
Test if the host OS is Mac OS X.
| bool isPOSIX |
( |
|
) |
throw () [static] |
Test if the host OS is a POSIX OS.
| bool isWindows |
( |
|
) |
throw () [static] |
Test if the host OS is Microsoft Windows.
| void printStackTrace |
( |
uint_t |
maxFrames = 20 |
) |
[static] |
Print a stack trace to standard error.
| void roundToPageSize |
( |
size_t & |
size |
) |
throw () [static] |
Round a value up to a multiple of the system page size.
| bool setEnvVariable |
( |
const String & |
name, |
|
|
const String & |
value | |
|
) |
| | throw () [static] |
Set the value of an environment variable.
- Parameters:
-
| name | The name of the variable. |
| value | The vaule for the variable. |
- Returns:
- true on success, false otherwise.
Set the system time.
On most platforms, superuser or administrator privileges are required to set the system time.
- Parameters:
-
- Exceptions:
-
The documentation for this class was generated from the following files: