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

Create an abstract Reader that fills a GeoGrid with the commute info from file. More...

#include <CommutesReader.h>

Inheritance diagram for geopop::CommutesReader:
Inheritance graph
Collaboration diagram for geopop::CommutesReader:
Collaboration graph

Public Member Functions

 CommutesReader (std::unique_ptr< std::istream > inputStream)
 Construct the CommutesReader with an istream with the file content. More...
 
virtual ~CommutesReader ()=default
 Default destructor needs to be virtual. More...
 
virtual void FillGeoGrid (GeoGrid &) const =0
 Add commutes onfo 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 that fills a GeoGrid with the commute info from file.

This can be implemented using different input types. Currently CSV is implemented.

Definition at line 31 of file CommutesReader.h.

Constructor & Destructor Documentation

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

Construct the CommutesReader with an istream with the file content.

Definition at line 35 of file CommutesReader.h.

References FillGeoGrid(), and ~CommutesReader().

Here is the call graph for this function:

virtual geopop::CommutesReader::~CommutesReader ( )
virtualdefault

Default destructor needs to be virtual.

Referenced by CommutesReader().

Here is the caller graph for this function:

Member Function Documentation

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

Add commutes onfo to the GeoGrid.

Implemented in geopop::CommutesCSVReader.

Referenced by CommutesReader().

Here is the caller graph for this function:

Member Data Documentation

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

The istream with the file content.

Definition at line 44 of file CommutesReader.h.

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


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