Storm
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SettingMemento.h
Go to the documentation of this file.
1#ifndef STORM_SETTINGS_SETTINGMEMENTO_H_
2#define STORM_SETTINGS_SETTINGMEMENTO_H_
3
4#include <memory>
5#include <string>
6
7namespace storm {
8namespace settings {
9
10// Forward-declare the module settings.
11namespace modules {
12class ModuleSettings;
13}
14
19 public:
28 SettingMemento(modules::ModuleSettings& settings, std::string const& longOptionName, bool resetToState);
29
33 virtual ~SettingMemento();
34
35 private:
36 // The settings object in which the setting is to be restored.
38
39 // The long name of the option that was temporarily set.
40 std::string const optionName;
41
42 // The state of the option before it was set.
43 bool resetToState;
44};
45
46} // namespace settings
47} // namespace storm
48
49#endif // STORM_SETTINGS_SETTINGMEMENTO_H_
This class is used to reset the state of an option that was temporarily set to a different status.
virtual ~SettingMemento()
Destructs the memento object and resets the value of the option to its original state.
This is the base class of the settings for a particular module.
SettingsType const & getModule()
Get module.
LabParser.cpp.
Definition cli.cpp:18