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

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

#include <CommutesCSVReader.h>

Inheritance diagram for geopop::CommutesCSVReader:
Inheritance graph
Collaboration diagram for geopop::CommutesCSVReader:
Collaboration graph

Public Member Functions

 CommutesCSVReader (std::unique_ptr< std::istream > istream)
 Construct the CommutesCSVReader with an istream containing the CSV data. More...
 
void FillGeoGrid (GeoGrid &geoGrid) const override
 Add the found Commutes to the provided GeoGrid. More...
 
- Public Member Functions inherited from geopop::CommutesReader
 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...
 

Additional Inherited Members

- Protected Attributes inherited from geopop::CommutesReader
std::unique_ptr< std::istream > m_inputStream
 The istream with the file content. More...
 

Detailed Description

Create a Reader that fills a GeoGrid with the commute info from CSV file.

Definition at line 27 of file CommutesCSVReader.h.

Constructor & Destructor Documentation

geopop::CommutesCSVReader::CommutesCSVReader ( std::unique_ptr< std::istream >  istream)
explicit

Construct the CommutesCSVReader with an istream containing the CSV data.

Definition at line 30 of file CommutesCSVReader.cpp.

Member Function Documentation

void geopop::CommutesCSVReader::FillGeoGrid ( GeoGrid geoGrid) const
overridevirtual

Add the found Commutes to the provided GeoGrid.

Implements geopop::CommutesReader.

Definition at line 32 of file CommutesCSVReader.cpp.

References geopop::GeoGrid::GetById(), stride::util::CSV::GetColumnCount(), stride::util::CSV::GetLabels(), and geopop::CommutesReader::m_inputStream.

Here is the call graph for this function:


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