WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcFile.h
1#ifndef _WINC_SFCFILE
2#define _WINC_SFCFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/SfcCdfFile.h>
7#include <WXP/SfcData.h>
8#include <WXP/SfcWxpFile.h>
9#include <WXP/SfcXmlFile.h>
10
11namespace WXP {
12 class SfcFile {
13 int type;
14 int ver;
15 int access;
16 SfcWxpFile wfile;
17 SfcCdfFile cfile;
18 SfcXmlFile xfile;
19 File file;
20 Date date;
21 bool opened;
22
23 public:
24 SfcFile();
25 SfcFile( const char *filename );
26 SfcFile( const char *filename, int access, int type );
27 ~SfcFile();
28 bool isOpen();
29 int open( const char *filename, int access, int type );
30 int open( const char *filename, int access, const char *type );
31 int open( const char *filename );
32 int rewind();
33 int close();
34 int getDate( Date &rdate );
35 const char *getDatim();
36 int setDate( Date &rdate );
37 int read( SfcData &data );
38 int write( SfcData &data );
39
40 static int checkType( const char *filename );
41 static int getType( const char *type );
42 // Surface types
43 enum Type {
44 UNK,
45 WXP,
46 NETCDF,
47 XML,
48 XMLC,
49 UNISYS
50 };
51 };
52}
53#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class reads in surface data from a netCDF file.
Definition SfcCdfFile.h:9
This class stores surface data.
Definition SfcData.h:12
This class reads in surface data from a file from file.
Definition SfcFile.h:12
int rewind()
Definition SfcFile.cc:160
int open(const char *filename, int access, int type)
Definition SfcFile.cc:75
int close()
Definition SfcFile.cc:169
int read(SfcData &data)
Definition SfcFile.cc:223
SfcFile()
Definition SfcFile.cc:42
static int checkType(const char *filename)
Definition SfcFile.cc:26
int getDate(Date &rdate)
Definition SfcFile.cc:200
~SfcFile()
Definition SfcFile.cc:180
int setDate(Date &rdate)
Definition SfcFile.cc:188
This class reads in surface data from a WXP formatted file from file.
Definition SfcWxpFile.h:9
This class reads in surface data from a WXP formatted file from file.
Definition SfcXmlFile.h:11
All WXP classes fall under the WXP namespace.
Definition Angle.h:4