Rudiments
|
#include <environment.h>
Static Public Member Functions | |
static const char * | getValue (const char *variable) |
static bool | setValue (const char *variable, const char *value) |
static bool | remove (const char *variable) |
static const char *const * | getVariables () |
static bool | clear () |
static void | setMutex (threadmutex *mtx) |
The environment class provides static methods for accessing and manipulating environment variables.
Clears the environment of all name-value pairs. After calling this, variables() will return NULL.
Returns the value of "variable".
Returns a NULL terminated list of all environment variables. Each entry in the list is of the form NAME=VALUE.
Removes "variable" from the environment.
|
static |
Allows you to supply a mutex if the class needs it. If your application is not multithreaded, then there is no need to supply a mutex.