The Open Master Hearing Aid (openMHA)
openMHA
Open community platform for hearing aid algorithm research
|
This class changes the value of an environment variable when constructed and restores the original state of the environment variable when destroyed. More...
Public Member Functions | |
mha_stash_environment_variable_t (const std::string &variable_name, const std::string &new_content) | |
~mha_stash_environment_variable_t () | |
Private Attributes | |
const bool | existed_before |
Flag indicates if the environment variable existed before constructor. More... | |
const std::string | variable_name |
Name of environment variable. More... | |
const std::string | original_content |
Content of environment variable before constructor executed. More... | |
This class changes the value of an environment variable when constructed and restores the original state of the environment variable when destroyed.
Can be used for testing functionality related to environment variables.
|
inline |
|
inline |
|
private |
Flag indicates if the environment variable existed before constructor.
|
private |
Name of environment variable.
|
private |
Content of environment variable before constructor executed.