26 return (original_value_);
31 auto value = getenv(name_.c_str());
32 return (value ? std::string(value) : std::string(
""));
38 unsetenv(name_.c_str());
40 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.