|
libdballe
8.6
|
Precompiled queries to manipulate the station table. More...
#include <station.h>
Public Member Functions | |
| PostgreSQLStation (v7::Transaction &tr, dballe::sql::PostgreSQLConnection &conn) | |
| PostgreSQLStation (const PostgreSQLStation &)=delete | |
| PostgreSQLStation (const PostgreSQLStation &&)=delete | |
| PostgreSQLStation & | operator= (const PostgreSQLStation &)=delete |
| DBStation | lookup (Tracer<> &trc, int id_station) override |
| Lookup station data by ID. | |
| int | maybe_get_id (Tracer<> &trc, const dballe::DBStation &st) override |
| Get the station ID given latitude, longitude and mobile identifier. More... | |
| int | insert_new (Tracer<> &trc, const dballe::DBStation &desc) override |
| Insert a new station in the database, without checking if it already exists. More... | |
| void | get_station_vars (Tracer<> &trc, int id_station, std::function< void(std::unique_ptr< wreport::Var >)> dest) override |
| Export station variables. | |
| void | add_station_vars (Tracer<> &trc, int id_station, DBValues &values) override |
| Add all station variables (without attributes) to values. More... | |
| void | run_station_query (Tracer<> &trc, const v7::StationQueryBuilder &qb, std::function< void(const dballe::DBStation &)>) override |
Public Member Functions inherited from dballe::db::v7::Station | |
| Station (v7::Transaction &tr) | |
| virtual void | run_station_query (Tracer<> &trc, const v7::StationQueryBuilder &qb, std::function< void(const dballe::DBStation &station)>)=0 |
| Run a station query, iterating on the resulting stations. | |
| void | dump (FILE *out) |
| Dump the entire contents of the table to an output stream. | |
Protected Member Functions | |
| void | _dump (std::function< void(int, int, const Coords &coords, const char *ident)> out) override |
Protected Attributes | |
| dballe::sql::PostgreSQLConnection & | conn |
| DB connection. | |
Protected Attributes inherited from dballe::db::v7::Station | |
| v7::Transaction & | tr |
Precompiled queries to manipulate the station table.
|
overridevirtual |
Add all station variables (without attributes) to values.
If the same variable exists in many different networks, the one with the highest priority will be used.
Implements dballe::db::v7::Station.
|
overridevirtual |
Insert a new station in the database, without checking if it already exists.
Returns the ID of the new station
Implements dballe::db::v7::Station.
|
overridevirtual |
Get the station ID given latitude, longitude and mobile identifier.
It returns MISSING_INT if it does not exist.
Implements dballe::db::v7::Station.
1.8.16