libdballe  5.18
Public Member Functions | Data Fields
dballe::db::Station Struct Reference

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

DBdb
 DB connection.
db::Statementsfstm
 Precompiled select fixed station query.
db::Statementsmstm
 Precompiled select mobile station query.
db::Statementsstm
 Precompiled select data by station id query.
db::Statementistm
 Precompiled insert query.
db::Statementustm
 Precompiled update query.
db::Statementdstm
 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.

Detailed Description

Precompiled queries to manipulate the station table.


Member Function Documentation

Get station information given a station ID.

Parameters:
idID of the station to query

Get the station ID given latitude, longitude and mobile identifier.

Returns:
Resulting ID of the station

Insert a new station entry.

Return values:
idID 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.

Parameters:
identValue to use for ident. NULL can be used to unset ident.

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