Provides access to process environment variables. More...
#include <env.h>
Static Public Member Functions | |
| static String | get (const char *name) |
| Returns the value of an environment variable. | |
| static String | get (const char *name, const String &defaultValue) |
| Returns the value of an environment variable with a default. | |
| static bool | isSet (const char *name) |
| Returns true if the environment variable is set. | |
| static bool | set (const char *name, const String &value, bool overwrite=true) |
| Sets an environment variable. | |
| static bool | unset (const char *name) |
| Removes an environment variable. | |
Provides access to process environment variables.
Static utility class wrapping standard environment variable operations. All methods return promeki::String for consistent integration with the
Returns the value of an environment variable with a default.
| name | The variable name. |
| defaultValue | Value to return if the variable is not set. |
Returns true if the environment variable is set.
| name | The variable name. |
Sets an environment variable.
| name | The variable name. |
| value | The value to set. |
| overwrite | If true, overwrite an existing value. |
Removes an environment variable.
| name | The variable name. |