|
libdballe
7.7
|
Public Member Functions | |
| virtual | ~Station () |
| Instantiate a Station object for this connection. | |
| virtual int | get_id (int lat, int lon, const char *ident=NULL)=0 |
| Get the station ID given latitude, longitude and mobile identifier. More... | |
| virtual int | obtain_id (int lat, int lon, const char *ident=NULL, bool *inserted=NULL)=0 |
| Get the station ID given latitude, longitude and mobile identifier. More... | |
| virtual void | dump (FILE *out)=0 |
| Dump the entire contents of the table to an output stream. | |
| virtual void | get_station_vars (int id_station, int id_report, std::function< void(std::unique_ptr< wreport::Var >)> dest)=0 |
| Export station variables. | |
| virtual void | add_station_vars (int id_station, Record &rec)=0 |
| Add all station variables (without attributes) to rec. More... | |
|
pure virtual |
Add all station variables (without attributes) to rec.
If the same variable exists in many different networks, the one with the highest priority will be used.
Implemented in dballe::db::odbc::ODBCStationV6, dballe::db::odbc::ODBCStationBase, dballe::db::sqlite::SQLiteStationBase, dballe::db::mysql::MySQLStationBase, and dballe::db::postgresql::StationBase.
|
pure virtual |
Get the station ID given latitude, longitude and mobile identifier.
It throws an exception if it does not exist.
Implemented in dballe::db::odbc::ODBCStationBase, dballe::db::sqlite::SQLiteStationBase, dballe::db::mysql::MySQLStationBase, and dballe::db::postgresql::StationBase.
|
pure virtual |
Get the station ID given latitude, longitude and mobile identifier.
It creates the station record if it does not exist.
Implemented in dballe::db::odbc::ODBCStationBase, dballe::db::sqlite::SQLiteStationBase, dballe::db::mysql::MySQLStationBase, and dballe::db::postgresql::StationBase.
1.8.9.1