Storm
1.13.0.1
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
7
namespace
storm
{
8
namespace
settings
{
9
10
// Forward-declare the module settings.
11
namespace
modules
{
12
class
ModuleSettings
;
13
}
14
18
class
SettingMemento
{
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.
37
modules::ModuleSettings
& settings;
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_
storm::settings::SettingMemento::~SettingMemento
virtual ~SettingMemento()
Destructs the memento object and resets the value of the option to its original state.
Definition
SettingMemento.cpp:15
storm::settings::SettingMemento::SettingMemento
SettingMemento(modules::ModuleSettings &settings, std::string const &longOptionName, bool resetToState)
Constructs a new memento for the specified option.
Definition
SettingMemento.cpp:7
storm::settings::modules::ModuleSettings
This is the base class of the settings for a particular module.
Definition
ModuleSettings.h:21
storm::settings::modules
Definition
ConversionGeneralSettings.cpp:11
storm::settings
Definition
ConvSettings.cpp:12
storm
Definition
AutomaticSettings.cpp:13
src
storm
settings
SettingMemento.h
Generated by
1.15.0