![]() |
Plasma Engine
2.0
|
This is a helper class to interact with environment variables. More...
#include <EnvironmentVariableUtils.h>
Static Public Member Functions | |
| static plString | GetValueString (plStringView sName, plStringView sDefault=nullptr) |
| Returns the current value of the request environment variable. If it isn't set szDefault will be returned. | |
| static plResult | SetValueString (plStringView sName, plStringView sValue) |
| Sets the environment variable for the current execution environment (i.e. this process and child processes created after this call). | |
| static plInt32 | GetValueInt (plStringView sName, plInt32 iDefault=-1) |
| Returns the current value of the request environment variable. If it isn't set iDefault will be returned. | |
| static plResult | SetValueInt (plStringView sName, plInt32 iValue) |
| Sets the environment variable for the current execution environment. | |
| static bool | IsVariableSet (plStringView sName) |
| Returns true if the environment variable with the given name is set, false otherwise. | |
| static plResult | UnsetVariable (plStringView sName) |
| Removes an environment variable from the current execution context (i.e. this process and child processes created after this call). | |
This is a helper class to interact with environment variables.