24 return (original_value_);
29 auto value = getenv(name_.c_str());
30 return (value ? std::string(value) : std::string(
""));
36 unsetenv(name_.c_str());
38 setenv(name_.c_str(), value.c_str(), 1);
EnvVarWrapper(const std::string &name)
Constructor.
void setValue(const std::string value="")
Sets the current value of the env variable.
~EnvVarWrapper()
Destructor.
std::string getOriginalValue() const
Fetches the original value of the env variable.
std::string getValue() const
Fetches the current value of the env variable.
Defines the logger used by the top-level component of kea-lfc.