Stride Reference Manual  1.0
stride::SimulatorSetup Class Reference

#include <SimulatorSetup.h>

Collaboration diagram for stride::SimulatorSetup:
Collaboration graph

Public Member Functions

 SimulatorSetup (const ptree &config, string hdf5_file, RunMode run_mode, const unsigned int timestamp_replay)
 
shared_ptr< SimulatorgetSimulator ()
 
unsigned int getStartDay () const
 

Private Member Functions

bool fileExists (string filename) const
 Helper function to check if the file with filename actually exists. More...
 

Private Attributes

ptree m_pt_config
 
string m_hdf5_file
 
unsigned int m_timestamp_replay
 
bool m_hdf5_file_exists
 
RunMode m_run_mode
 

Detailed Description

Definition at line 22 of file SimulatorSetup.h.

Constructor & Destructor Documentation

stride::SimulatorSetup::SimulatorSetup ( const ptree &  config,
string  hdf5_file,
RunMode  run_mode,
const unsigned int  timestamp_replay 
)

Definition at line 16 of file SimulatorSetup.cpp.

References fileExists(), m_hdf5_file, and m_hdf5_file_exists.

Member Function Documentation

shared_ptr< Simulator > stride::SimulatorSetup::getSimulator ( )
unsigned int stride::SimulatorSetup::getStartDay ( ) const
inline

Definition at line 29 of file SimulatorSetup.h.

bool stride::SimulatorSetup::fileExists ( string  filename) const
private

Helper function to check if the file with filename actually exists.

Definition at line 52 of file SimulatorSetup.cpp.

Referenced by SimulatorSetup().

Member Data Documentation

ptree stride::SimulatorSetup::m_pt_config
private

Definition at line 38 of file SimulatorSetup.h.

Referenced by getSimulator().

string stride::SimulatorSetup::m_hdf5_file
private

Definition at line 39 of file SimulatorSetup.h.

Referenced by getSimulator(), and SimulatorSetup().

unsigned int stride::SimulatorSetup::m_timestamp_replay
mutableprivate

Definition at line 40 of file SimulatorSetup.h.

Referenced by getSimulator().

bool stride::SimulatorSetup::m_hdf5_file_exists
private

Definition at line 41 of file SimulatorSetup.h.

Referenced by SimulatorSetup().

RunMode stride::SimulatorSetup::m_run_mode
private

Definition at line 42 of file SimulatorSetup.h.

Referenced by getSimulator().


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