19 #include <boost/property_tree/xml_parser.hpp> 37 Hdf5Saver(
string filename,
const ptree& pt_config,
int frequency,
41 virtual void update(
const Simulator& sim);
44 void forceSave(
const Simulator& sim,
int timestep = -1);
50 void saveClusters(Group& group,
string dataset_name,
const vector<Cluster>& clusters)
const;
53 void savePersonTIData(H5File& file,
const Simulator& sim)
const;
56 void savePersonTDData(Group& group,
const Simulator& sim)
const;
59 void saveTravellers(Group& group,
const Simulator& sim)
const;
62 void saveTimestepMetadata(H5File& file,
unsigned int total_amt,
unsigned int current,
bool create =
false)
const;
65 void saveRngState(Group& group,
const Simulator& sim)
const;
68 void saveCalendar(Group& group,
const Simulator& sim)
const;
71 void saveConfigs(H5File& file,
const ptree& pt_config)
const;
77 unsigned int m_timestep;
78 unsigned int m_save_count;
83 Hdf5Saver(
string filename,
const ptree& pt_config,
int frequency,
Hdf5Saver(string filename, const ptree &pt_config, int frequency, RunMode run_mode=RunMode::Initial, int start_timestep=0)
Time Dependent Person DataType.
Interface/Implementation of Observer.
virtual void update(const Simulator &sim)
Update function which is called by the subject.
Header for the Simulator class.
Main class that contains and direct the virtual world.
Header for the core Cluster class.
void forceSave(const Simulator &sim, int timestep=-1)
Forces a save to the hdf5 file, with an optional timestep argument which specifies a new timestep sav...