HOG2
|
A class which loads and stores scenarios from files. More...
#include <ScenarioLoader.h>
Public Member Functions | |
ScenarioLoader () | |
ScenarioLoader (const char *) | |
Loads the experiments from the scenario file. More... | |
void | Save (const char *) |
int | GetNumExperiments () |
const char * | GetScenarioName () |
Experiment | GetNthExperiment (int which) |
void | AddExperiment (Experiment which) |
Private Attributes | |
char | scenName [1024] |
std::vector< Experiment > | experiments |
A class which loads and stores scenarios from files.
Versions currently handled: 0.0 and 1.0 (includes scale).
Definition at line 55 of file ScenarioLoader.h.
|
inline |
Definition at line 57 of file ScenarioLoader.h.
References scenName.
ScenarioLoader::ScenarioLoader | ( | const char * | fname | ) |
Loads the experiments from the scenario file.
Definition at line 19 of file ScenarioLoader.cpp.
References experiments, and scenName.
void ScenarioLoader::AddExperiment | ( | Experiment | which | ) |
Definition at line 79 of file ScenarioLoader.cpp.
References experiments.
|
inline |
Definition at line 62 of file ScenarioLoader.h.
References experiments.
|
inline |
Definition at line 60 of file ScenarioLoader.h.
References experiments.
|
inline |
Definition at line 61 of file ScenarioLoader.h.
References scenName.
void ScenarioLoader::Save | ( | const char * | fname | ) |
Definition at line 62 of file ScenarioLoader.cpp.
References experiments.
|
private |
Definition at line 67 of file ScenarioLoader.h.
Referenced by AddExperiment(), GetNthExperiment(), GetNumExperiments(), Save(), and ScenarioLoader().
|
private |
Definition at line 66 of file ScenarioLoader.h.
Referenced by GetScenarioName(), and ScenarioLoader().