WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcXmlFile.h
1#ifndef _WINC_SFCXMLFILE
2#define _WINC_SFCXMLFILE
3
4#include <libxml/encoding.h>
5#include <libxml/xmlwriter.h>
6
7#include <WXP/Date.h>
8#include <WXP/SfcData.h>
9
10namespace WXP {
11 class SfcXmlFile {
12 int type;
13 int ver;
14 int access;
15 long pos;
16 int cnt;
17 int num;
18 xmlTextWriterPtr writer;
19 xmlDocPtr reader;
20 xmlNodePtr node;
21 Date date;
22 bool opened;
23
24 public:
25 SfcXmlFile( );
26 SfcXmlFile( const char *filename );
27 SfcXmlFile( const char *filename, int access );
28 SfcXmlFile( const char *filename, int access, int rtype );
29 ~SfcXmlFile( );
30 bool isOpen();
31 int open( const char *filename, int access, int rtype );
32 int rewind( );
33 int close( );
34 int setDate( Date &rdate );
35 int getDate( Date &rdate );
36 int read( SfcData &data );
37 int write( SfcData &data );
38
39 enum {
40 UNK,
41 NORM,
42 COMPRESS
43 };
44
45 static int checkType( const char *filename );
46 };
47}
48#endif
This class stores date and time information.
Definition Date.h:8
This class stores surface data.
Definition SfcData.h:12
This class reads in surface data from a WXP formatted file from file.
Definition SfcXmlFile.h:11
int read(SfcData &data)
Definition SfcXmlFile.cc:207
int open(const char *filename, int access, int rtype)
Definition SfcXmlFile.cc:86
~SfcXmlFile()
Definition SfcXmlFile.cc:181
int close()
Definition SfcXmlFile.cc:167
int setDate(Date &rdate)
Definition SfcXmlFile.cc:189
static int checkType(const char *filename)
Definition SfcXmlFile.cc:30
int getDate(Date &rdate)
Definition SfcXmlFile.cc:198
SfcXmlFile()
Definition SfcXmlFile.cc:44
int rewind()
Definition SfcXmlFile.cc:156
All WXP classes fall under the WXP namespace.
Definition Angle.h:4