Stride Reference Manual  - generated for commit 9643b11
geopop::LocationsReader Class Referenceabstract

Create an abstract Reader which fills a GeoGrid with the cities found in file. More...

#include <LocationsReader.h>

Inheritance diagram for geopop::LocationsReader:
Inheritance graph
Collaboration diagram for geopop::LocationsReader:
Collaboration graph

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

geopop::LocationsReader::LocationsReader ( std::unique_ptr< std::istream >  inputStream)
inlineexplicit

Construct the CitiesReader with an istream containing the file content.

Definition at line 35 of file LocationsReader.h.

References FillGeoGrid(), and ~LocationsReader().

Here is the call graph for this function:

virtual geopop::LocationsReader::~LocationsReader ( )
virtualdefault

Default destructor.

Referenced by LocationsReader().

Here is the caller graph for this function:

Member Function Documentation

virtual void geopop::LocationsReader::FillGeoGrid ( GeoGrid ) const
pure virtual

Add the locations to the GeoGrid.

Implemented in geopop::LocationsCSVReader.

Referenced by LocationsReader().

Here is the caller graph for this function:

Member Data Documentation

std::unique_ptr<std::istream> geopop::LocationsReader::m_inputStream
protected

The istream with the file content.

Definition at line 44 of file LocationsReader.h.

Referenced by geopop::LocationsCSVReader::FillGeoGrid().


The documentation for this class was generated from the following file: