HOG2
Public Member Functions | Private Attributes | List of all members
ScenarioLoader Class Reference

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< Experimentexperiments
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ScenarioLoader() [1/2]

ScenarioLoader::ScenarioLoader ( )
inline

Definition at line 57 of file ScenarioLoader.h.

References scenName.

◆ ScenarioLoader() [2/2]

ScenarioLoader::ScenarioLoader ( const char *  fname)

Loads the experiments from the scenario file.

Definition at line 19 of file ScenarioLoader.cpp.

References experiments, and scenName.

Member Function Documentation

◆ AddExperiment()

void ScenarioLoader::AddExperiment ( Experiment  which)

Definition at line 79 of file ScenarioLoader.cpp.

References experiments.

◆ GetNthExperiment()

Experiment ScenarioLoader::GetNthExperiment ( int  which)
inline

Definition at line 62 of file ScenarioLoader.h.

References experiments.

◆ GetNumExperiments()

int ScenarioLoader::GetNumExperiments ( )
inline

Definition at line 60 of file ScenarioLoader.h.

References experiments.

◆ GetScenarioName()

const char* ScenarioLoader::GetScenarioName ( )
inline

Definition at line 61 of file ScenarioLoader.h.

References scenName.

◆ Save()

void ScenarioLoader::Save ( const char *  fname)

Definition at line 62 of file ScenarioLoader.cpp.

References experiments.

Member Data Documentation

◆ experiments

std::vector<Experiment> ScenarioLoader::experiments
private

◆ scenName

char ScenarioLoader::scenName[1024]
private

Definition at line 66 of file ScenarioLoader.h.

Referenced by GetScenarioName(), and ScenarioLoader().


The documentation for this class was generated from the following files: