23 #include <libxml++/libxml++.h>
41 BormaIO(
const std::string& configfile);
45 std::vector< std::vector<MeteoData> >& vecMeteo);
49 void checkForMeteoFiles(
const std::string& xmlpath,
const std::string& stationname,
const Date& date_in,
50 std::string& filename_out,
Date& date_out);
51 void xmlParseStringToDouble(
const std::string& str_in,
double& d_out,
const std::string& parname);
52 std::string xmlGetNodeContent(xmlpp::Node* pNode,
const std::string& nodename);
54 std::string xmlGetNodeName(xmlpp::Node* pNode);
55 xmlpp::Node* xmlGetNode(xmlpp::Node* parentNode,
const std::string& nodename);
56 Date stringToDate(
const std::string& tmp)
const;
57 bool validFilename(
const std::string& tmp)
const;
58 void getFiles(
const std::string& stationsname,
const Date& start_date,
const Date& end_date,
59 std::vector<std::string>& vecFiles, std::vector<Date>& vecDate);
60 void readStationNames(
void);
61 bool bufferData(
const Date& dateStart,
const Date& dateEnd,
62 std::vector< std::vector<MeteoData> >& vecMeteo,
63 const size_t& stationnr);
65 std::vector<std::string> vecStationName;
67 std::string coordin, coordinparam, coordout, coordoutparam;
71 static const double plugin_nodata;
72 static const double default_tz;
73 static const double pivot_year;
74 static const std::string dflt_extension;
A class representing the IO Layer of the software Alpine3D. For each type of IO (File, DB, Webservice, etc) a derived class is to be created that holds the specific implementation of the appropriate virtual methods. The IOHandler class is a wrapper class that is able to deal with all above implementations of the IOInterface abstract base class.
Definition: IOInterface.h:43
This class enables the access meteo data in Borma's XML format.
Definition: BormaIO.h:37
BormaIO(void(*delObj)(void *), const Config &i_cfg)
A class that reads a key/value file. These files (typically named *.ini) follow the INI file format s...
Definition: Config.h:58
A class to handle timestamps. This class handles conversion between different time display formats (I...
Definition: Date.h:79
A class to represent meteo stations with attributes like longitude, latitude, etc.
Definition: StationData.h:38
A class to represent a singular measurement received from one station at a certain time (represented ...
Definition: MeteoData.h:101
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: BormaIO.cc:74