Simple struct providing one static method that reads an environment variable into an ALib string type.
While under posix compatible operating systems, environment variable names are case sensitive, under Microsoft windows they are not.
Definition at line 31 of file environment.hpp.
#include <environment.hpp>
Public Static Method Index: | |
static ALIB_API bool | Get (const CString &varName, AString &target, lang::CurrentData targetData=lang::CurrentData::Clear) |
|
static |
Reads an environment variable into an ALib string.
varName | The name of the variable to be retrieved. |
target | An AString to write the result to. |
targetData | If CurrentData::Keep , the parameter target is not cleared before the result is written. Defaults to CurrentData::Clear . |
true
if variable was found. Definition at line 30 of file environment.cpp.