1 #ifndef DBALLE_DB_V7_MYSQL_STATION_H 2 #define DBALLE_DB_V7_MYSQL_STATION_H 4 #include <dballe/db/v7/station.h> 28 void _dump(std::function<
void(
int,
int,
const Coords& coords,
const char* ident)> out)
override;
40 void get_station_vars(
Tracer<>& trc,
int id_station, std::function<
void(std::unique_ptr<wreport::Var>)> dest)
override;
Definition: qbuilder.h:81
void get_station_vars(Tracer<> &trc, int id_station, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
Export station variables.
Coordinates.
Definition: types.h:368
Collection of DBValue objects, indexed by wreport::Varcode.
Definition: values.h:191
DBStation lookup(Tracer<> &trc, int id_station) override
Lookup station data by ID.
Definition: transaction.h:15
int maybe_get_id(Tracer<> &trc, const dballe::DBStation &st) override
Get the station ID given latitude, longitude and mobile identifier.
dballe::sql::MySQLConnection & conn
DB connection.
Definition: mysql/station.h:26
int insert_new(Tracer<> &trc, const dballe::DBStation &desc) override
Insert a new station in the database, without checking if it already exists.
Precompiled queries to manipulate the station table.
Definition: mysql/station.h:20
Smart pointer for trace::Step objects, which calls done() when going out of scope.
Definition: db/v7/fwd.h:45
void add_station_vars(Tracer<> &trc, int id_station, DBValues &values) override
Add all station variables (without attributes) to values.
Database connection.
Definition: mysql.h:126