Storm
1.13.0.1
A Modern Probabilistic Model Checker
Loading...
Searching...
No Matches
SettingMemento.cpp
Go to the documentation of this file.
1
#include "
storm/settings/SettingMemento.h
"
2
3
#include "
storm/settings/modules/ModuleSettings.h
"
4
5
namespace
storm
{
6
namespace
settings
{
7
SettingMemento::SettingMemento
(
modules::ModuleSettings
& settings, std::string
const
& longOptionName,
bool
resetToState)
8
: settings(settings), optionName(longOptionName), resetToState(resetToState) {
9
// Intentionally left empty.
10
}
11
15
SettingMemento::~SettingMemento
() {
16
if
(resetToState) {
17
settings.set(optionName);
18
}
else
{
19
settings.unset(optionName);
20
}
21
}
22
}
// namespace settings
23
}
// namespace storm
ModuleSettings.h
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
Definition
ConvSettings.cpp:12
storm
Definition
AutomaticSettings.cpp:13
src
storm
settings
SettingMemento.cpp
Generated by
1.15.0