Stride Reference Manual  - generated for commit 9643b11
HouseholdCSVReader.h
Go to the documentation of this file.
1 /*
2  * This is free software: you can redistribute it and/or modify it
3  * under the terms of the GNU General Public License as published by
4  * the Free Software Foundation, either version 3 of the License, or
5  * any later version.
6  * The software is distributed in the hope that it will be useful,
7  * but WITHOUT ANY WARRANTY; without even the implied warranty of
8  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
9  * GNU General Public License for more details.
10  * You should have received a copy of the GNU General Public License
11  * along with the software. If not, see <http://www.gnu.org/licenses/>.
12  *
13  * Copyright 2018, Jan Broeckhove and Bistromatics group.
14  */
15 
16 #pragma once
17 
18 #include "HouseholdReader.h"
19 
20 #include <vector>
21 
22 namespace stride {
23 
24 class ContactPool;
25 class Person;
26 
27 } // namespace stride
28 
29 namespace geopop {
30 
35 {
36 public:
38  explicit HouseholdCSVReader(std::unique_ptr<std::istream> inputStream);
39 
41  void SetReferenceHouseholds(unsigned int& ref_person_count,
42  std::vector<std::vector<unsigned int>>& ref_ages) override;
43 
44 private:
46  std::unique_ptr<std::istream> m_input_stream;
47 };
48 
49 } // namespace geopop
Creates a Reader that retrieves the different Household profiles from a given CSV file...
std::unique_ptr< std::istream > m_input_stream
Input stream connected to input data file.
HouseholdCSVReader(std::unique_ptr< std::istream > inputStream)
Construct the HouseholdCSVReader with an istream containing the CSV data.
Namespace for the geographic and demograhic classes.
Definition: Coordinate.h:21
Retrieves the reference Household profiles from file.
void SetReferenceHouseholds(unsigned int &ref_person_count, std::vector< std::vector< unsigned int >> &ref_ages) override
Add the locations to the GeoGrid.
Namespace for the simulator and related classes.
Definition: Calendar.cpp:28