Stride Reference Manual  - generated for commit 9643b11
LocationsCSVReader.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 "LocationsReader.h"
19 
20 namespace geopop {
21 
30 {
31 public:
33  explicit LocationsCSVReader(std::unique_ptr<std::istream> inputStream);
34 
36  void FillGeoGrid(GeoGrid& geoGrid) const override;
37 };
38 
39 } // namespace geopop
Create an abstract Reader which fills a GeoGrid with the cities found in file.
void FillGeoGrid(GeoGrid &geoGrid) const override
Add the locations read to the GeoGrid.
A Geographic grid of simulation region contains Locations that in turn contain an index to the Contac...
Definition: GeoGrid.h:41
Create a Reader that fills a GeoGrid with the Location data found in a CSV input stream.
Namespace for the geographic and demograhic classes.
Definition: Coordinate.h:21
LocationsCSVReader(std::unique_ptr< std::istream > inputStream)
Construct the CitiesCSVReader that reads istream CSV data.