Stride Reference Manual
- generated for commit 9643b11
|
A Factory for creating the correct implementation of the different Readers which parse the information needed to construct a GeoGrid, based on the file extension. More...
#include <ReaderFactory.h>
Static Public Member Functions | |
static std::shared_ptr< LocationsReader > | CreateLocationsReader (const std::string &filename) |
Create a Reader based on the filename relative to the data directory. More... | |
static std::shared_ptr< LocationsReader > | CreateLocationsReader (const filesys::path &path) |
Create a Reader based on an absolute filesystem path for the input file. More... | |
static std::shared_ptr< CommutesReader > | CreateCommutesReader (const std::string &filename) |
Create a CommutesReader based on the filename relative to the data directory. More... | |
static std::shared_ptr< CommutesReader > | CreateCommutesReader (const filesys::path &path) |
Create a CommutesReader based on the absolute filesystem path the input file. More... | |
static std::shared_ptr< HouseholdReader > | CreateHouseholdReader (const std::string &filename) |
Create a HouseholdReader based on the filename relative to the data directory. More... | |
static std::shared_ptr< HouseholdReader > | CreateHouseholdReader (const filesys::path &path) |
Create a HouseholdReader based on the absolute filesystem path the input file. More... | |
Static Private Member Functions | |
static std::unique_ptr< std::istream > | OpenFile (const filesys::path &path) |
Create an istream based on the filesystem path. More... | |
A Factory for creating the correct implementation of the different Readers which parse the information needed to construct a GeoGrid, based on the file extension.
Currently only CSV Readers are implemented.
Definition at line 42 of file ReaderFactory.h.
|
static |
Create a Reader based on the filename relative to the data directory.
Definition at line 32 of file ReaderFactory.cpp.
References stride::util::FileSys::GetDataDir().
Referenced by stride::GeoPopBuilder::MakeLocations().
|
static |
Create a Reader based on an absolute filesystem path for the input file.
Definition at line 37 of file ReaderFactory.cpp.
|
static |
Create a CommutesReader based on the filename relative to the data directory.
Definition at line 42 of file ReaderFactory.cpp.
References stride::util::FileSys::GetDataDir().
Referenced by stride::GeoPopBuilder::MakeLocations().
|
static |
Create a CommutesReader based on the absolute filesystem path the input file.
Definition at line 47 of file ReaderFactory.cpp.
|
static |
Create a HouseholdReader based on the filename relative to the data directory.
Definition at line 52 of file ReaderFactory.cpp.
References stride::util::FileSys::GetDataDir().
Referenced by geopop::GeoGridConfig::SetData().
|
static |
Create a HouseholdReader based on the absolute filesystem path the input file.
Definition at line 57 of file ReaderFactory.cpp.
|
staticprivate |
Create an istream based on the filesystem path.
Definition at line 62 of file ReaderFactory.cpp.