26 #include <boost/filesystem.hpp> 27 #include <boost/filesystem/path.hpp> 28 namespace filesys = boost::filesystem;
31 namespace filesys = std::filesystem;
39 const filesys::path path(filename);
40 if (!filesys::exists(path)) {
47 if (path.extension().string() ==
".proto") {
48 return std::make_shared<GeoGridProtoReader>(std::make_unique<std::ifstream>(path.string()), pop);
51 path.extension().string());
std::shared_ptr< GeoGridReader > CreateReader(const std::string &filename, stride::Population *pop) const
Create a GeoGridReader based on the provided extension in the filename.
Basic exception class: needed to prevent clang-tidy warning "thrown exception type is not nothrow cop...
Key Data structure: container for (a) all individuals in the population (b) the ContactPoolSys wchich...
Namespace for the geographic and demograhic classes.