WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
CityHash.h
1#ifndef _WINC_CITYHASH
2#define _WINC_CITYHASH
3
4#include <WXP/CityHashData.h>
5#include <WXP/Domain.h>
6#include <WXP/Hash.h>
7
8namespace WXP {
9 class CityHash {
10 Hash hash;
11 int prior;
12
13 public:
14 CityHash( const char *file, Domain &domain, int prior );
15 CityHash( const char *file );
16 CityHash();
17 ~CityHash();
18 int init();
19 int setup( const char *file, Domain &domain, int prior );
20 int setup( const char *file );
21 int get( const char *id, CityHashData &data );
22 int get( int ind, const char *id, CityHashData &data );
23 int first();
24 const char *nextKey();
26 inline int getNum(){ return hash.getNum(); };
27 int print();
28 int printData();
29 };
30}
31#endif
This class sets up a hash table for city database information.
Definition CityHash.h:9
~CityHash()
Definition CityHash.cc:55
int init()
Definition CityHash.cc:61
int first()
Definition CityHash.cc:188
int print()
Definition CityHash.cc:204
int getNum()
Definition CityHash.h:26
const char * nextKey()
Definition CityHash.cc:197
CityHash()
Definition CityHash.cc:48
int printData()
Definition CityHash.cc:212
int get(const char *id, CityHashData &data)
Definition CityHash.cc:152
int setup(const char *file, Domain &domain, int prior)
Definition CityHash.cc:73
This class stores and manipulates domain data.
Definition Domain.h:19
This class creates and manages generic hash tables.
Definition Hash.h:5
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores basic city database values.
Definition CityHashData.h:7