libdballe
5.18
|
Precompiled queries to manipulate the station table. More...
#include <station.h>
Public Member Functions | |
Station (DB &conn) | |
void | set_ident (const char *ident) |
Set the mobile station identifier input value for this ::dba_db_station. | |
int | get_id () |
Get the station ID given latitude, longitude and mobile identifier. | |
void | get_data (int id) |
Get station information given a station ID. | |
int | insert () |
Insert a new station entry. | |
void | update () |
Update the information about a station entry. | |
void | remove () |
Remove a station record. | |
void | dump (FILE *out) |
Dump the entire contents of the table to an output stream. |
Data Fields | |
DB & | db |
DB connection. | |
db::Statement * | sfstm |
Precompiled select fixed station query. | |
db::Statement * | smstm |
Precompiled select mobile station query. | |
db::Statement * | sstm |
Precompiled select data by station id query. | |
db::Statement * | istm |
Precompiled insert query. | |
db::Statement * | ustm |
Precompiled update query. | |
db::Statement * | dstm |
Precompiled delete query. | |
DBALLE_SQL_C_SINT_TYPE | id |
Station ID SQL parameter. | |
DBALLE_SQL_C_SINT_TYPE | lat |
Station latitude SQL parameter. | |
DBALLE_SQL_C_SINT_TYPE | lon |
Station longitude SQL parameter. | |
char | ident [64] |
Mobile station identifier SQL parameter. | |
SQLLEN | ident_ind |
Mobile station identifier indicator. |
Precompiled queries to manipulate the station table.
void dballe::db::Station::get_data | ( | int | id | ) |
Get station information given a station ID.
id | ID of the station to query |
int dballe::db::Station::get_id | ( | ) |
Get the station ID given latitude, longitude and mobile identifier.
int dballe::db::Station::insert | ( | ) |
Insert a new station entry.
id | ID of the newly inserted station |
void dballe::db::Station::set_ident | ( | const char * | ident | ) |
Set the mobile station identifier input value for this ::dba_db_station.
ident | Value to use for ident. NULL can be used to unset ident. |