libdballe  7.7
Public Member Functions
dballe::db::odbc::ODBCStationV6 Class Reference
Inheritance diagram for dballe::db::odbc::ODBCStationV6:
dballe::db::odbc::ODBCStationBase dballe::db::sql::Station

Public Member Functions

 ODBCStationV6 (ODBCConnection &conn)
 
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...
 
- Public Member Functions inherited from dballe::db::odbc::ODBCStationBase
 ODBCStationBase (ODBCConnection &conn)
 
 ODBCStationBase (const ODBCStationBase &)=delete
 
 ODBCStationBase (const ODBCStationBase &&)=delete
 
ODBCStationBase & operator= (const ODBCStationBase &)=delete
 
int get_id (int lat, int lon, const char *ident=NULL) override
 Get the station ID given latitude, longitude and mobile identifier. More...
 
int obtain_id (int lat, int lon, const char *ident=NULL, bool *inserted=NULL) override
 Get the station ID given latitude, longitude and mobile identifier. 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.
 

Additional Inherited Members

- Protected Member Functions inherited from dballe::db::odbc::ODBCStationBase
void set_ident (const char *ident)
 Set the mobile station identifier input value for this ::dba_db_station. More...
 
void get_data (int id)
 Get station information given a station ID. More...
 
void update ()
 Update the information about a station entry.
 
void remove ()
 Remove a station record.
 
void impl_add_station_vars (const char *query, int id_station, Record &rec)
 
- Protected Attributes inherited from dballe::db::odbc::ODBCStationBase
ODBCConnection & conn
 DB connection.
 
db::Sequence * seq_station
 Station ID sequence, when the DB requires it.
 
ODBCStatement * sfstm
 Precompiled select fixed station query.
 
ODBCStatement * smstm
 Precompiled select mobile station query.
 
ODBCStatement * sstm
 Precompiled select data by station id query.
 
ODBCStatement * istm
 Precompiled insert query.
 
ODBCStatement * ustm
 Precompiled update query.
 
ODBCStatement * dstm
 Precompiled delete query.
 
int id
 Station ID SQL parameter.
 
int lat
 Station latitude SQL parameter.
 
int lon
 Station longitude SQL parameter.
 
char ident [64]
 Mobile station identifier SQL parameter.
 
SQLLEN ident_ind
 Mobile station identifier indicator.
 

Member Function Documentation

void dballe::db::odbc::ODBCStationV6::add_station_vars ( int  id_station,
Record &  rec 
)
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.

Reimplemented from dballe::db::odbc::ODBCStationBase.


The documentation for this class was generated from the following file: