|
libdballe
7.7
|
Public Member Functions | |
| StationBase (PostgreSQLConnection &conn) | |
| int | get_id (int lat, int lon, const char *ident=nullptr) override |
| Get the station ID given latitude, longitude and mobile identifier. More... | |
| int | obtain_id (int lat, int lon, const char *ident=nullptr, bool *inserted=NULL) override |
| Get the station ID given latitude, longitude and mobile identifier. More... | |
| void | get_station_vars (int id_station, int id_report, std::function< void(std::unique_ptr< wreport::Var >)> dest) override |
| Export station variables. | |
| void | add_station_vars (int id_station, Record &rec) override |
| Add all station variables (without attributes) to rec. More... | |
| void | dump (FILE *out) override |
| Dump the entire contents of the table to an output stream. | |
Public Member Functions inherited from dballe::db::sql::Station | |
| virtual | ~Station () |
| Instantiate a Station object for this connection. | |
Protected Member Functions | |
| bool | maybe_get_id (int lat, int lon, const char *ident, int *id) |
| Lookup the ID of a station, returning true if it was found, false if not. | |
| StationBase (const StationBase &)=delete | |
| StationBase (const StationBase &&)=delete | |
| StationBase & | operator= (const StationBase &)=delete |
Protected Attributes | |
| PostgreSQLConnection & | conn |
| DB connection. | |
|
overridevirtual |
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.
Implements dballe::db::sql::Station.
|
overridevirtual |
Get the station ID given latitude, longitude and mobile identifier.
It throws an exception if it does not exist.
Implements dballe::db::sql::Station.
|
overridevirtual |
Get the station ID given latitude, longitude and mobile identifier.
It creates the station record if it does not exist.
Implements dballe::db::sql::Station.
1.8.9.1