23 #include <boost/property_tree/ptree_fwd.hpp> 50 std::shared_ptr<ContactCenter>
ParseContactCenter(boost::property_tree::ptree& contactCenter);
59 std::shared_ptr<Location>
ParseLocation(boost::property_tree::ptree& location);
void Read() override
Actually perform the read and return the GeoGrid.
std::shared_ptr< ContactCenter > ParseContactCenter(boost::property_tree::ptree &contactCenter)
Create a ContactCenter based on the information stored in the provided boost property tree...
Id
Enumerates the ContactPool types.
A group of Persons that potentially have contacts with one another.
Header for the core ContactPool class.
GeoGridJSONReader operator=(const GeoGridJSONReader &)=delete
No copy assignement.
Key Data structure: container for (a) all individuals in the population (b) the ContactPoolSys wchich...
Definition of ContactPool Id Type.
Coordinate ParseCoordinate(boost::property_tree::ptree &coordinate)
Create a Coordinate based on the information stored in the provided boost property tree...
Namespace for the geographic and demograhic classes.
An abstract base class for creating a GeoGrid that was read from a file, can be implemented using mul...
boost::geometry::model::point< double, 2, boost::geometry::cs::geographic< boost::geometry::degree >> Coordinate
GeoGridJSONReader(std::unique_ptr< std::istream > inputStream, stride::Population *pop)
Construct the GeoGridJSONReader with the istream which contains the JSON.
std::shared_ptr< Location > ParseLocation(boost::property_tree::ptree &location)
Create a Location based on the information stored in the provided boost property tree.
Store and handle person data.
An implementation of the GeoGridReader using JSON.
stride::Person * ParsePerson(boost::property_tree::ptree &person)
Create a Person based on the information stored in the provided boost property tree.
stride::ContactPool * ParseContactPool(boost::property_tree::ptree &contactPool, stride::ContactType::Id typeId)
Create a ContactCenter based on the information stored in the provided boost property tree...