WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
KmlFile.h
1#ifndef _WINC_KMLFILE
2#define _WINC_KMLFILE
3
4#include <libxml/encoding.h>
5
6#include <WXP/Date.h>
7#include <WXP/KmlData.h>
8
9namespace WXP {
10 class KmlFile {
11 xmlDocPtr reader;
12 xmlNodePtr node[20];
13 int nlevel;
14 char name[100];
15 int type;
16 bool opened;
17
18 public:
19 KmlFile();
20 KmlFile( const char *filename );
21 KmlFile( const char *filename, int rtype );
22 ~KmlFile();
23 bool isOpen();
24 int open( const char *filename );
25 int open( const char *filename, int rtype );
26 int close();
27 int read( KmlData &data );
28
29 enum {
30 UNK,
31 NORM,
32 COMPRESS
33 };
34
35 static int checkType( const char *filename );
36 };
37}
38#endif
This class reads in surface data from a WXP formatted file from file.
Definition KmlFile.h:10
KmlFile()
Definition KmlFile.cc:46
int open(const char *filename)
Definition KmlFile.cc:74
int close()
Definition KmlFile.cc:113
int read(KmlData &data)
Definition KmlFile.cc:132
static int checkType(const char *filename)
Definition KmlFile.cc:32
~KmlFile()
Definition KmlFile.cc:124
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct stores KML data.
Definition KmlData.h:8