#include "fileio.h"
Go to the source code of this file.
Data Structures | |
struct | t_cidbrd_ctx |
Constext structure used for reading tower cell IDs from the database file. More... | |
struct | t_cidb_coord |
Typedefs | |
typedef short(* | t_cidb_progress )(short perc, short rdwr, void *ctx) |
Callback function for showing progress of the import of tower cell information database. | |
Enumerations | |
enum | t_cidb_err { CIDB_ERR_OK = 0, CIDB_ERR_PARAM, CIDB_ERR_MEMORY, CIDB_ERR_READ, CIDB_ERR_WRITE, CIDB_ERR_PARSE, CIDB_ERR_FILE, CIDB_ERR_SEEK, CIDB_ERR_INTERRUPT, CIDB_ERR_INTERNAL, CIDB_NFND_CTRY, CIDB_NFND_NET, CIDB_NFND_AREA, CIDB_NFND_CELL } |
Tower cell ID database error codes. More... | |
Functions | |
t_cidb_err | cidbcrt (const t_filename *anInputFile, const t_filename *anOutputFile, t_cidb_progress aProgrCb, double aMinLat, double aMaxLat, double aMinLon, double aMaxLon, void *aProgrCbCtx) |
Creates a binary tower cell ID database file from the CSV file from http://www.opencellid.org. | |
t_cidb_err | cidbrd (t_cidbrd_ctx *aCtx, t_cidb_coord *theCoords, int *theNum, t_hfileio anFD, int aCtryId, int aNetId, int anAreaId, int aCellId) |
Reads coordinates of the given tower cell from the database. | |
t_cidb_err | cidbrdfile (t_cidb_coord *theCoords, int *theNum, const t_filename *aFileName, int aCtryId, int aNetId, int anAreaId, int aCellId) |
Reads coordinates of the given tower cell from the database. | |
void | cidbrd_ctx_free (t_cidbrd_ctx *aCtx) |
Releases memory occupied by the given context. |
void cidbrd_ctx_free | ( | t_cidbrd_ctx * | aCtx | ) |
Releases memory occupied by the given context.
aCtx | pointer to the context for cidbrd(). |