WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcWxpFile.h
1#ifndef _WINC_SFCWXPFILE
2#define _WINC_SFCWXPFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/SfcData.h>
7
8namespace WXP {
9 class SfcWxpFile {
10 int type;
11 int ver;
12 int access;
13 int cnt;
14 int num;
15 File file;
16 Date date;
17 char datim[30];
18 bool opened;
19
20 public:
21 SfcWxpFile( );
22 SfcWxpFile( const char *filename );
23 SfcWxpFile( const char *filename, int access );
24 ~SfcWxpFile( );
25 bool isOpen();
26 int open( const char *filename, int access );
27 int rewind( );
28 int close( );
29 int setDate( Date &rdate );
30 int getDate( Date &rdate );
31 inline const char *getDatim(){ return datim; };
32 int read( SfcData &data );
33 int write( SfcData &data );
34
35 static int checkType( const char *filename );
36 };
37}
38#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class stores surface data.
Definition SfcData.h:12
This class reads in surface data from a WXP formatted file from file.
Definition SfcWxpFile.h:9
int read(SfcData &data)
Definition SfcWxpFile.cc:174
int close()
Definition SfcWxpFile.cc:138
~SfcWxpFile()
Definition SfcWxpFile.cc:148
int getDate(Date &rdate)
Definition SfcWxpFile.cc:165
int setDate(Date &rdate)
Definition SfcWxpFile.cc:156
int open(const char *filename, int access)
Definition SfcWxpFile.cc:69
int rewind()
Definition SfcWxpFile.cc:124
SfcWxpFile()
Definition SfcWxpFile.cc:43
static int checkType(const char *filename)
Definition SfcWxpFile.cc:29
All WXP classes fall under the WXP namespace.
Definition Angle.h:4