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;
Smart pointer for trace::Step objects, which calls done() when going out of scope.
Definition: db/v7/fwd.h:46
Precompiled queries to manipulate the station table.
Definition: sqlite/station.h:21
dballe::sql::SQLiteStatement * istm
Precompiled insert query.
Definition: sqlite/station.h:33
int maybe_get_id(Tracer<> &trc, const dballe::DBStation &st) override
Get the station ID given latitude, longitude and mobile identifier.
dballe::sql::SQLiteStatement * smstm
Precompiled select mobile station query.
Definition: sqlite/station.h:31
dballe::sql::SQLiteStatement * sfstm
Precompiled select fixed station query.
Definition: sqlite/station.h:29
DBStation lookup(Tracer<> &trc, int id_station) override
Lookup station data by ID.
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::SQLiteConnection & conn
DB connection.
Definition: sqlite/station.h:26
dballe::sql::SQLiteStatement * ssdstm
Precompiled select station data query.
Definition: sqlite/station.h:35
void add_station_vars(Tracer<> &trc, int id_station, DBValues &values) override
Add all station variables (without attributes) to values.
void get_station_vars(Tracer<> &trc, int id_station, std::function< void(std::unique_ptr< wreport::Var >)> dest) override
Export station variables.
Database connection.
Definition: sqlite.h:35
Coordinates.
Definition: types.h:369
Collection of DBValue objects, indexed by wreport::Varcode.
Definition: values.h:192
Definition: qbuilder.h:82
Definition: transaction.h:16
SQLite statement.
Definition: sqlite.h:116