WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
CityData.h
1#ifndef _WINC_CITYDATA
2#define _WINC_CITYDATA
3
4namespace WXP {
5 class CityData {
6 char name[21]; /* Name of city */
7 char state[3]; /* State city is located */
8 char region[3]; /* Region/country city is located */
9 char id[10]; /* ICAO identifier */
10 int prior; /* Station priority */
11 float lat,lon; /* Latitude and longitude of the station */
12 float el; /* Station elevation above sea level */
13 char wmo[6]; /* 5 digit WMO identifier */
14 int num; /* Number of occurrences */
15
16 public:
17 CityData();
18 int init();
20 inline const char *getId(){ return id; };
22 inline const char *getName(){ return name; };
24 inline const char *getState(){ return state; };
26 inline const char *getRegion(){ return region; };
28 inline const char *getWmo(){ return wmo; };
30 inline float getLat(){ return lat; };
32 inline float getLon(){ return lon; };
34 inline float getElev(){ return el; };
36 inline int getPrior(){ return prior; };
38 inline int getNum(){ return num; }
39 int printLine();
40 int print();
41
42 friend class CityFile;
43 };
44}
45#endif
This class stores city database information.
Definition CityData.h:5
int printLine()
Definition CityData.cc:43
const char * getRegion()
Definition CityData.h:26
CityData()
Definition CityData.cc:19
float getLat()
Definition CityData.h:30
const char * getWmo()
Definition CityData.h:28
float getElev()
Definition CityData.h:34
const char * getState()
Definition CityData.h:24
int getPrior()
Definition CityData.h:36
float getLon()
Definition CityData.h:32
int getNum()
Definition CityData.h:38
const char * getName()
Definition CityData.h:22
int init()
Definition CityData.cc:26
int print()
Definition CityData.cc:52
const char * getId()
Definition CityData.h:20
This class reads in data from city database files.
Definition CityFile.h:8
All WXP classes fall under the WXP namespace.
Definition Angle.h:4