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