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

Creates a Reader that retrieves the different Household profiles from a given CSV file. More...

#include <HouseholdCSVReader.h>

Inheritance diagram for geopop::HouseholdCSVReader:
Inheritance graph
Collaboration diagram for geopop::HouseholdCSVReader:
Collaboration graph

Public Member Functions

 HouseholdCSVReader (std::unique_ptr< std::istream > inputStream)
 Construct the HouseholdCSVReader with an istream containing the CSV data. More...
 
void SetReferenceHouseholds (unsigned int &ref_person_count, std::vector< std::vector< unsigned int >> &ref_ages) override
 Add the locations to the GeoGrid. More...
 
- Public Member Functions inherited from geopop::HouseholdReader
 HouseholdReader ()=default
 Construct the HouseholdReader. More...
 
virtual ~HouseholdReader ()=default
 Default destructor. More...
 

Private Attributes

std::unique_ptr< std::istream > m_input_stream
 Input stream connected to input data file. More...
 

Detailed Description

Creates a Reader that retrieves the different Household profiles from a given CSV file.

Definition at line 34 of file HouseholdCSVReader.h.

Constructor & Destructor Documentation

geopop::HouseholdCSVReader::HouseholdCSVReader ( std::unique_ptr< std::istream >  inputStream)
explicit

Construct the HouseholdCSVReader with an istream containing the CSV data.

Definition at line 25 of file HouseholdCSVReader.cpp.

Member Function Documentation

void geopop::HouseholdCSVReader::SetReferenceHouseholds ( unsigned int &  ref_person_count,
std::vector< std::vector< unsigned int >> &  ref_ages 
)
overridevirtual

Add the locations to the GeoGrid.

Implements geopop::HouseholdReader.

Definition at line 30 of file HouseholdCSVReader.cpp.

References m_input_stream.

Member Data Documentation

std::unique_ptr<std::istream> geopop::HouseholdCSVReader::m_input_stream
private

Input stream connected to input data file.

Definition at line 46 of file HouseholdCSVReader.h.

Referenced by SetReferenceHouseholds().


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