Stride Reference Manual  - generated for commit 9643b11
CommutesCSVReader.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 "CommutesReader.h"
19 
20 #include <memory>
21 
22 namespace geopop {
23 
28 {
29 public:
31  explicit CommutesCSVReader(std::unique_ptr<std::istream> istream);
32 
34  void FillGeoGrid(GeoGrid& geoGrid) const override;
35 };
36 
37 } // namespace geopop
Create a Reader that fills a GeoGrid with the commute info from CSV file.
CommutesCSVReader(std::unique_ptr< std::istream > istream)
Construct the CommutesCSVReader with an istream containing the CSV data.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Definition: GeoGrid.h:41
void FillGeoGrid(GeoGrid &geoGrid) const override
Add the found Commutes to the provided GeoGrid.
Namespace for the geographic and demograhic classes.
Definition: Coordinate.h:21
Create an abstract Reader that fills a GeoGrid with the commute info from file.