#include <dballe/db/internals.h>
Go to the source code of this file.
Data Structures | |
struct | _dba_db_pseudoana |
Precompiled query to manipulate the pseudoana table. More... | |
Typedefs | |
typedef _dba_db_pseudoana * | dba_db_pseudoana |
Precompiled query to manipulate the pseudoana table. | |
Functions | |
dba_err | dba_db_pseudoana_create (dba_db db, dba_db_pseudoana *ins) |
Create a new dba_db_pseudoana. | |
void | dba_db_pseudoana_delete (dba_db_pseudoana ins) |
Deletes a dba_db_pseudoana. | |
void | dba_db_pseudoana_set_ident (dba_db_pseudoana ins, const char *ident) |
Set the mobile station identifier input value for this dba_db_pseudoana. | |
dba_err | dba_db_pseudoana_get_id (dba_db_pseudoana ins, int *id) |
Get the pseudoana ID given latitude, longitude and mobile identifier. | |
dba_err | dba_db_pseudoana_get_data (dba_db_pseudoana ins, int id) |
Get pseudoana information given a pseudoana ID. | |
dba_err | dba_db_pseudoana_insert (dba_db_pseudoana ins, int *id) |
Insert a new pseudoana entry. | |
dba_err | dba_db_pseudoana_update (dba_db_pseudoana ins) |
Update the information about a pseudoana entry. | |
dba_err | dba_db_pseudoana_remove (dba_db_pseudoana ins) |
Remove a pseudoana record. |
dba_err dba_db_pseudoana_create | ( | dba_db | db, | |
dba_db_pseudoana * | ins | |||
) |
Create a new dba_db_pseudoana.
db | The dba_db this dba_db_pseudoana will access |
ins | The newly created dba_db_pseudoana (it will need to be deallocated wth dba_db_pseudoana_delete()) |
void dba_db_pseudoana_delete | ( | dba_db_pseudoana | ins | ) |
dba_err dba_db_pseudoana_get_data | ( | dba_db_pseudoana | ins, | |
int | id | |||
) |
Get pseudoana information given a pseudoana ID.
ins | dba_db_pseudoana to query | |
id | ID of the station to query |
dba_err dba_db_pseudoana_get_id | ( | dba_db_pseudoana | ins, | |
int * | id | |||
) |
Get the pseudoana ID given latitude, longitude and mobile identifier.
ins | dba_db_pseudoana to query |
id | Resulting ID of the station |
dba_err dba_db_pseudoana_insert | ( | dba_db_pseudoana | ins, | |
int * | id | |||
) |
Insert a new pseudoana entry.
ins | dba_db_pseudoana with all the input values filled in |
id | ID of the newly inserted station |
dba_err dba_db_pseudoana_remove | ( | dba_db_pseudoana | ins | ) |
Remove a pseudoana record.
ins | The dba_db_pseudoana structure, with id filled with the id of the pseudoana to remove. |
void dba_db_pseudoana_set_ident | ( | dba_db_pseudoana | ins, | |
const char * | ident | |||
) |
Set the mobile station identifier input value for this dba_db_pseudoana.
ins | dba_db_pseudoana structure to fill in | |
ident | Value to copy into ins. NULL can be used to unset ident. |
dba_err dba_db_pseudoana_update | ( | dba_db_pseudoana | ins | ) |
Update the information about a pseudoana entry.
ins | dba_db_pseudoana with all the input values filled in |