This class sets up a has table for city database information. More...
#include "../include/UpaRawinHash.h"
Public Member Functions | |
| UpaRawinHash (const char *file) | |
| int | init () |
| int | setup (const char *file) |
| int | get (const char *id, UpaRawinData &data) |
| int | put (const char *id, UpaRawinData &data) |
| int | first () |
| int | next (UpaRawinData &data) |
| int | print () |
| int | printHash () |
This class sets up a has table for city database information.
| UpaRawinHash::UpaRawinHash | ( | const char * | file | ) |
Constructor. Sets up hash table.
| file | City database file to use | |
| domain | Domain to save cities from | |
| prior | Maximum priority to save |
| int UpaRawinHash::get | ( | const char * | id, | |
| UpaRawinData & | data | |||
| ) |
Gets the city data from hash
| id | City ID to search hash |
References WXP::Hash::search().
Referenced by WXP::UpaDecode::decode().
| int UpaRawinHash::put | ( | const char * | id, | |
| UpaRawinData & | data | |||
| ) |
Puts the city data from hash
| id | Sounding ID |
| data | UpaRawinData class containing data |
References WXP::Hash::enter(), and WXP::Hash::search().
Referenced by WXP::UpaDecode::decode().
1.6.1