29 #include <boost/property_tree/ptree.hpp> 30 #include <spdlog/logger.h> 40 const auto importFile = m_config.get<
string>(
"run.population_file");
41 m_stride_logger->info(
"Importing population from file {}.", importFile);
44 const auto& reader = geoGridReaderFactory.
CreateReader(importFile, pop.get());
46 pop->RefGeoGrid().Finalize();
A Factory for creating the correct implementation of a GeoGridReader based on the filename extension...
std::shared_ptr< GeoGridReader > CreateReader(const std::string &filename, stride::Population *pop) const
Create a GeoGridReader based on the provided extension in the filename.
Logging (spdlog) utilities.
Namespace for the geographic and demograhic classes.
std::shared_ptr< Population > Build(std::shared_ptr< Population > pop) override
Creates a population by importing it.
Header file for the core Population class.
Namespace for the simulator and related classes.