A static class to wrap getenv() and putenv(). More...
#include <genvironment.h>
Static Public Member Functions | |
| static std::string | get (const std::string &name, const std::string &default_) |
| Returns the environment variable value or the given default. More... | |
| static void | put (const std::string &name, const std::string &value) |
| Sets the environment variable value. More... | |
A static class to wrap getenv() and putenv().
Definition at line 36 of file genvironment.h.
|
static |
Returns the environment variable value or the given default.
Definition at line 25 of file genvironment_unix.cpp.
Referenced by G::hostname(), and G::GetOpt::wrapDefault().
|
static |
Sets the environment variable value.
1.8.9.1