1#ifndef STORM_SETTINGS_MODULES_MODULESETTINGS_H_
2#define STORM_SETTINGS_MODULES_MODULESETTINGS_H_
6#include <unordered_map>
39 virtual bool check()
const;
69 std::vector<std::shared_ptr<Option>>
const&
getOptions()
const;
107 bool isSet(std::string
const& optionName)
const;
115 void set(std::string
const& name);
123 void unset(std::string
const& name);
134 std::string moduleName;
137 std::unordered_map<std::string, std::shared_ptr<Option>> optionMap;
140 std::vector<std::shared_ptr<Option>> options;
This class represents one command-line option.
This class is used to reset the state of an option that was temporarily set to a different status.
This is the base class of the settings for a particular module.
std::unique_ptr< storm::settings::SettingMemento > overrideOption(std::string const &name, bool requiredStatus)
Sets the option with the given name to the required status.
bool isSet(std::string const &optionName) const
Retrieves whether the option with the given name was set.
std::vector< std::shared_ptr< Option > > const & getOptions() const
Retrieves the options of this module.
virtual ~ModuleSettings()
void unset(std::string const &name)
Unsets the option with the specified name.
virtual bool check() const
Checks whether the settings are consistent.
void set(std::string const &name)
Sets the option with the specified name.
std::string const & getModuleName() const
Retrieves the name of the module to which these settings belong.
uint_fast64_t getPrintLengthOfLongestOption(bool includeAdvanced) const
Retrieves the (print) length of the longest option.
void addOption(std::shared_ptr< Option > const &option)
Adds and registers the given option.
virtual void finalize()
Prepares the modules for further usage, should be called at the end of the initialization,...
void restoreDefaults()
Restores the default values for all arguments of all options.
Option & getOption(std::string const &longName)
Retrieves the option with the given long name.
SettingsType const & getModule()
Get module.