libzypp 17.31.7
|
Temporarily set/unset an environment variable. More...
#include <base/Env.h>
Public Member Functions | |
ScopedSet (const ScopedSet &)=delete | |
ScopedSet & | operator= (const ScopedSet &)=delete |
ScopedSet (ScopedSet &&)=default | |
ScopedSet & | operator= (ScopedSet &&)=default |
ScopedSet () | |
Default ctor (NOOP). More... | |
ScopedSet (std::string var_r, const char *val_r) | |
Set var_r to val_r (unsets var_r if val_r is a nullptr ). More... | |
~ScopedSet () | |
Restore the original setting. More... | |
Private Member Functions | |
void | setval (const char *val_r) |
Private Attributes | |
std::string | _var |
std::unique_ptr< std::string > | _val |
|
delete |
|
default |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
private |