20 #ifndef SCENARIOLOADER_H_
21 #define SCENARIOLOADER_H_
23 #include "../basic_types/Scenario.h"
virtual ~ScenarioLoader()
Destroys this instance of ScenarioLoader.
Definition: ScenarioLoader.cpp:44
basic_types::Scenario_up getScenarioByID(unsigned int id) const
Generates a Scenario object specified by the given ID without initializing it.
Definition: ScenarioLoader.cpp:68
basic_types::Scenario_up getScenarioByName(string name) const
Generates a Scenario object specified by the given name without initializing it.
Definition: ScenarioLoader.cpp:61
unordered_set< string > firstNames
A set storing all names which should be displayed first when printing the scenario list...
Definition: ScenarioLoader.h:94
basic_types::Scenario_up getScenario(string ident) const
Generates a Scenario object specified by the given string without initializing it.
Definition: ScenarioLoader.cpp:46
unique_ptr< Scenario > Scenario_up
Alias of a unique pointer to a Scenario object.
Definition: Scenario.h:163
unordered_map< string, unsigned int > scnNameToIDMapping
A mapping from scenario names (long and short) to an unique identifier.
Definition: ScenarioLoader.h:89
void initNameToIDMapping()
Fills the scnNameToIDMapping with the appropriate (hard coded) values.
Definition: ScenarioLoader.cpp:93
ScenarioLoader()
Generates a new ScenarioLoader object.
Definition: ScenarioLoader.cpp:40
This class generates Scenario object from their string identifier (without initializing them)...
Definition: ScenarioLoader.h:34
void getScenarioList(std::ostream &ost, string separator=",") const
Print a list of all available scenarios to the given stream using the given separator.
Definition: ScenarioLoader.cpp:131