26#include <meteoio/MeteoIO.h>
36 virtual bool snowCoverExists(
const std::string& i_snowfile,
const std::string& stationID)
const;
38 virtual void readSnowCover(
const std::string& i_snowfile,
const std::string& stationID,
45 const ProcessDat& Hdata,
const double wind_trans24);
49 virtual bool writeHazardData(
const std::string& stationID,
const std::vector<ProcessDat>& Hdata,
50 const std::vector<ProcessInd>& Hdata_ind,
const size_t& num);
55 static void parseStationName(
const std::string& stationName, std::string& stName, std::string& stNumber);
61 void deleteProfile(
const std::string& stationName,
const unsigned char& stationNumber,
62 const mio::Date& dateStart,
const mio::Date& dateEnd);
63 void deleteHdata(
const std::string& stationName,
const std::string& stationNumber,
64 const mio::Date& dateStart,
const mio::Date& dateEnd);
65 void insertProfile(
const std::vector<SnowProfileLayer> &Pdata);
66 void insertHdata(
const std::string& stationName,
const std::string& stationNumber,
67 const std::vector<ProcessDat>& Hdata,
const std::vector<ProcessInd>& Hdata_ind,
70 oracle::occi::Date OracleDate(mio::Date in_date)
const;
71 static std::string getKey(
const SnowpackConfig& i_cfg,
const std::string& key,
const std::string& section);
76 oracle::occi::Environment *env;
77 oracle::occi::Connection *conn;
78 oracle::occi::Statement *stmt;
80 const std::string oracleDB, oracleUser, oraclePassword;
83 static const double time_zone;
84 static double hoar_density_surf, hoar_min_size_surf;
86 static const std::string sqlDeleteHdata;
87 static const std::string sqlDeleteProfile;
88 static const std::string sqlInsertHdata;
89 static const std::string sqlInsertProfile;
CurrentMeteo is the class of interpolated meteo data for the current calculation time step It contai...
Definition: DataClasses.h:83
Definition: ImisDBIO.h:30
ImisDBIO(const SnowpackConfig &i_cfg, const RunInfo &run_info)
Definition: ImisDBIO.cc:63
virtual void writeSnowCover(const mio::Date &date, const SnowStation &Xdata, const ZwischenData &Zdata, const bool &forbackup=false)
Definition: ImisDBIO.cc:136
ImisDBIO & operator=(const ImisDBIO &in)
Definition: ImisDBIO.cc:88
virtual bool writeHazardData(const std::string &stationID, const std::vector< ProcessDat > &Hdata, const std::vector< ProcessInd > &Hdata_ind, const size_t &num)
Definition: ImisDBIO.cc:257
virtual void readSnowCover(const std::string &i_snowfile, const std::string &stationID, SN_SNOWSOIL_DATA &SSdata, ZwischenData &Zdata, const bool &read_salinity)
Definition: ImisDBIO.cc:130
virtual void writeProfile(const mio::Date &date, const SnowStation &Xdata)
Dump aggregated profile to database.
Definition: ImisDBIO.cc:235
virtual bool snowCoverExists(const std::string &i_snowfile, const std::string &stationID) const
This routine checks if the specified snow cover data exists.
Definition: ImisDBIO.cc:125
~ImisDBIO()
Definition: ImisDBIO.cc:97
virtual void writeTimeSeries(const SnowStation &Xdata, const SurfaceFluxes &Sdata, const CurrentMeteo &Mdata, const ProcessDat &Hdata, const double wind_trans24)
Definition: ImisDBIO.cc:142
class to collect the information about the current simulation (version, date)
Definition: DataClasses.h:849
SN_SNOWSOIL_DATA includes all important station parameters as well as LayerData.
Definition: DataClasses.h:230
Defines structure for snow profile layers.
Definition: DataClasses.h:810
Definition: DataClasses.h:604
Definition: SnowpackConfig.h:28
Definition: SnowpackIOInterface.h:27
Definition: DataClasses.h:733
ZwischenData contains "memory" information mainly for operational use It is used to prepare some para...
Definition: DataClasses.h:65
Structure of double values for output to SDB.
Definition: Hazard.h:37