22 #ifndef DBALLE_DB_V5_STATION_H
23 #define DBALLE_DB_V5_STATION_H
70 DBALLE_SQL_C_SINT_TYPE
id;
72 DBALLE_SQL_C_SINT_TYPE
lat;
74 DBALLE_SQL_C_SINT_TYPE
lon;
128 void dump(FILE* out);
static void reset_db(db::Connection &conn)
Clear (if applicable) and recreate the table structure in the database.
db::Statement * sfstm
Precompiled select fixed station query.
Definition: db/v5/station.h:57
void dump(FILE *out)
Dump the entire contents of the table to an output stream.
Database connection.
Definition: internals.h:124
The ODBC specification is imperfect with regards to integer sizes on 64bit platforms, and different ODBC drivers are currently interpreting it differently.
DBALLE_SQL_C_SINT_TYPE id
Station ID SQL parameter.
Definition: db/v5/station.h:70
int get_id()
Get the station ID given latitude, longitude and mobile identifier.
db::Statement * istm
Precompiled insert query.
Definition: db/v5/station.h:63
Precompiled queries to manipulate the station table.
Definition: db/v5/station.h:46
int insert()
Insert a new station entry.
db::Statement * smstm
Precompiled select mobile station query.
Definition: db/v5/station.h:59
db::Statement * ustm
Precompiled update query.
Definition: db/v5/station.h:65
ODBC statement.
Definition: internals.h:220
db::Sequence * seq_station
Station ID sequence, when the DB requires it.
Definition: db/v5/station.h:54
void get_data(int id)
Get station information given a station ID.
db::Statement * dstm
Precompiled delete query.
Definition: db/v5/station.h:67
ODBC statement to read a sequence.
Definition: internals.h:299
void set_ident(const char *ident)
Set the mobile station identifier input value for this ::dba_db_station.
db::Connection & conn
DB connection.
Definition: db/v5/station.h:51
db::Statement * sstm
Precompiled select data by station id query.
Definition: db/v5/station.h:61
DBALLE_SQL_C_SINT_TYPE lon
Station longitude SQL parameter.
Definition: db/v5/station.h:74
SQLLEN ident_ind
Mobile station identifier indicator.
Definition: db/v5/station.h:78
DBALLE_SQL_C_SINT_TYPE lat
Station latitude SQL parameter.
Definition: db/v5/station.h:72
char ident[64]
Mobile station identifier SQL parameter.
Definition: db/v5/station.h:76
void update()
Update the information about a station entry.