Stride Reference Manual  1.0
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
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;
43 };
44 
45 }
unsigned int getStartDay() const
unsigned int m_timestamp_replay
Time Dependent Person DataType.
Definition: NoBehaviour.h:17
Header for the Simulator class.
STL namespace.