41 CsvIO(
const std::string& configfile);
48 std::vector< std::vector<MeteoData> >& vecMeteo);
51 void parseInputOutputSection();
52 void cleanup() noexcept;
53 std::
string setDateParsing(const std::
string& datetime_spec);
54 std::vector<std::
string> readHeaders(std::ifstream& fin,
CsvParameters& params) const;
56 static
Date getDate(
CsvParameters& params, const std::vector<std::
string>& vecFields, const
bool& silent_errors, const std::
string& filename, const
size_t& linenr);
60 std::map<std::
string, FileUtils::FileIndexer> indexer_map;
63 std::
string coordin, coordinparam;
64 static const
size_t streampos_every_n_lines;
66 bool errors_to_nodata;
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:79
Reads meteo data from a comma separated file.
Definition: CsvIO.h:39
virtual void readMeteoData(const Date &dateStart, const Date &dateEnd, std::vector< std::vector< MeteoData > > &vecMeteo)
Fill vecMeteo with a time series of objects corresponding to the interval indicated by dateStart and ...
Definition: CsvIO.cc:816
virtual void readStationData(const Date &date, std::vector< StationData > &vecStation)
Fill vecStation with StationData objects for a certain date of interest.
Definition: CsvIO.cc:622
CsvIO(const std::string &configfile)
Definition: CsvIO.cc:409
Definition: CsvParams.h:91
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:87
A class representing the IO Layer of the software Alpine3D. For each type of IO (File,...
Definition: IOInterface.h:98
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:107
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:41