21 #include <boost/property_tree/ptree.hpp> 43 void Write(
GeoGrid& geoGrid, std::ostream& stream)
override;
47 boost::property_tree::ptree
WriteContactCenter(std::shared_ptr<ContactCenter> contactCenter);
An interface for writing the GeoGrid to a file, can be implemented with multiple file types...
boost::property_tree::ptree WriteLocation(const Location &location)
Create a Boost Property Tree containing all info needed to reconstruct a Location.
A group of Persons that potentially have contacts with one another.
std::set< stride::Person * > m_persons_found
The persons found when looping over the ContactPools.
boost::property_tree::ptree WritePerson(stride::Person *person)
Create a Boost Property Tree containing all info needed to reconstruct a Person.
boost::property_tree::ptree WriteContactCenter(std::shared_ptr< ContactCenter > contactCenter)
Create a Boost Property Tree containing all info needed to reconstruct a ContactCenter.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Writes a GeoGrid to a JSON file.
boost::property_tree::ptree WriteCoordinate(const Coordinate &coordinate)
Create a Boost Property Tree containing all info needed to reconstruct a Coordinate.
Namespace for the geographic and demograhic classes.
void Write(GeoGrid &geoGrid, std::ostream &stream) override
Write the provided GeoGrid to the proved ostream in JSON format.
boost::geometry::model::point< double, 2, boost::geometry::cs::geographic< boost::geometry::degree >> Coordinate
boost::property_tree::ptree WriteContactPool(stride::ContactPool *contactPool)
Create a Boost Property Tree containing all info needed to reconstruct a ContactPool.
GeoGridJSONWriter()
Construct the GeoGridJSONWriter.
Location for use within the GeoGrid, contains Coordinate and index to ContactPools.
Store and handle person data.
Namespace for the simulator and related classes.