|
BuildCache
|
A class for temporarily modifying an environment variable. More...
#include <env_utils.hpp>
Public Member Functions | |
| scoped_set_env_t (const std::string &name, const std::string &value) | |
| Temporarily set an environment variable. More... | |
| ~scoped_set_env_t () | |
| Restore the environment variable to its old value. | |
Private Attributes | |
| std::string | m_name |
| env_var_t | m_old_env_var |
A class for temporarily modifying an environment variable.
| bcache::scoped_set_env_t::scoped_set_env_t | ( | const std::string & | name, |
| const std::string & | value | ||
| ) |
Temporarily set an environment variable.
| name | The name of the environment variable. |
| value | The value for the environment variable. |
1.8.17