Stride Reference Manual
1.0
Main Page
Namespaces
Classes
Files
File List
File Members
SimulatorSetup.h
Go to the documentation of this file.
1
8
#pragma once
9
10
#include <string>
11
#include <memory>
12
#include <boost/property_tree/xml_parser.hpp>
13
#include "
sim/Simulator.h
"
14
#include "
sim/SimulatorRunMode.h
"
15
16
using namespace
boost::property_tree
;
17
using namespace
std
;
18
19
namespace
stride
{
20
21
// TODO: At this point SimulatorSetup is so small it could be made into one function
22
class
SimulatorSetup
{
23
public
:
24
SimulatorSetup
(
const
ptree& config,
string
hdf5_file,
RunMode
run_mode,
25
const
unsigned
int
timestamp_replay);
26
27
shared_ptr<Simulator> getSimulator();
28
29
unsigned
int
getStartDay
()
const
{
30
return
m_timestamp_replay;
31
}
32
33
private
:
35
bool
fileExists(
string
filename)
const
;
36
37
private
:
38
ptree
m_pt_config
;
39
string
m_hdf5_file
;
40
mutable
unsigned
int
m_timestamp_replay
;
41
bool
m_hdf5_file_exists
;
42
RunMode
m_run_mode
;
43
};
44
45
}
stride::SimulatorSetup::getStartDay
unsigned int getStartDay() const
Definition:
SimulatorSetup.h:29
stride::SimulatorSetup::m_timestamp_replay
unsigned int m_timestamp_replay
Definition:
SimulatorSetup.h:40
stride::SimulatorSetup::m_hdf5_file_exists
bool m_hdf5_file_exists
Definition:
SimulatorSetup.h:41
stride::RunMode
RunMode
Definition:
SimulatorRunMode.h:15
stride
Time Dependent Person DataType.
Definition:
NoBehaviour.h:17
stride::SimulatorSetup::m_pt_config
ptree m_pt_config
Definition:
SimulatorSetup.h:38
Simulator.h
Header for the Simulator class.
property_tree
std
STL namespace.
stride::SimulatorSetup
Definition:
SimulatorSetup.h:22
stride::SimulatorSetup::m_run_mode
RunMode m_run_mode
Definition:
SimulatorSetup.h:42
SimulatorRunMode.h
stride::SimulatorSetup::m_hdf5_file
string m_hdf5_file
Definition:
SimulatorSetup.h:39
main
cpp
sim
SimulatorSetup.h
Generated on Tue Jun 27 2017 15:37:20 for Stride Reference Manual by
1.8.11