WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
CityFile.h
1#ifndef _WINC_CITYFILE
2#define _WINC_CITYFILE
3
4#include <WXP/CityData.h>
5#include <WXP/File.h>
6
7namespace WXP {
8 class CityFile {
9 File file;
10 int num;
11 bool opened;
12
13 public:
14 CityFile();
15 CityFile( const char *filename, int access );
16 CityFile( const char *filename );
17 ~CityFile();
18
19 int open( const char *filename, int access );
20 int open( const char *filename );
21 bool isOpen();
22 int rewind();
23 int close();
24 int read( CityData &city );
25 int getNum();
26 };
27}
28#endif
This class stores city database information.
Definition CityData.h:5
This class reads in data from city database files.
Definition CityFile.h:8
CityFile()
Definition CityFile.cc:23
~CityFile()
Definition CityFile.cc:77
int getNum()
Definition CityFile.cc:136
int close()
Definition CityFile.cc:99
int read(CityData &city)
Definition CityFile.cc:109
int rewind()
Definition CityFile.cc:91
bool isOpen()
Definition CityFile.cc:84
int open(const char *filename, int access)
Definition CityFile.cc:49
This class accesses files.
Definition File.h:15
All WXP classes fall under the WXP namespace.
Definition Angle.h:4