8 : settings(settings), optionName(
longOptionName), resetToState(resetToState) {
17 settings.
set(optionName);
19 settings.
unset(optionName);
virtual ~SettingMemento()
Destructs the memento object and resets the value of the option to its original state.
SettingMemento(modules::ModuleSettings &settings, std::string const &longOptionName, bool resetToState)
Constructs a new memento for the specified option.
This is the base class of the settings for a particular module.
void unset(std::string const &name)
Unsets the option with the specified name.
void set(std::string const &name)
Sets the option with the specified name.
SettingsType const & getModule()
Get module.