Stride Reference Manual
- generated for commit 9643b11
|
Create an abstract Reader which fills a GeoGrid with the cities found in file. More...
#include <LocationsReader.h>
Public Member Functions | |
LocationsReader (std::unique_ptr< std::istream > inputStream) | |
Construct the CitiesReader with an istream containing the file content. More... | |
virtual | ~LocationsReader ()=default |
Default destructor. More... | |
virtual void | FillGeoGrid (GeoGrid &) const =0 |
Add the locations to the GeoGrid. More... | |
Protected Attributes | |
std::unique_ptr< std::istream > | m_inputStream |
The istream with the file content. More... | |
Create an abstract Reader which fills a GeoGrid with the cities found in file.
This can be implemented using different input types. Currently CSV is implemented.
Definition at line 31 of file LocationsReader.h.
|
inlineexplicit |
Construct the CitiesReader with an istream containing the file content.
Definition at line 35 of file LocationsReader.h.
References FillGeoGrid(), and ~LocationsReader().
|
virtualdefault |
|
pure virtual |
Add the locations to the GeoGrid.
Implemented in geopop::LocationsCSVReader.
Referenced by LocationsReader().
|
protected |
The istream with the file content.
Definition at line 44 of file LocationsReader.h.
Referenced by geopop::LocationsCSVReader::FillGeoGrid().