WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
UpaFile.h
1#ifndef _WINC_UPAFILE
2#define _WINC_UPAFILE
3
4#include <WXP/Date.h>
5#include <WXP/String.h>
6#include <WXP/UpaRawinData.h>
7#include <WXP/UpaWxpFile.h>
8
9namespace WXP {
10 class UpaFile {
11 int type;
12 int ver;
13 int access;
14 UpaWxpFile wfile;
15 Date date;
16 bool opened;
17
18 public:
19 UpaFile( );
20 UpaFile( const char *filename );
21 UpaFile( const char *filename, int access, int type );
22 ~UpaFile( );
23
24 int open( const char *filename, int access, int type );
25 int open( const char *filename );
26 int getDate( Date &rdate );
27 int setDate( Date &rdate );
28 inline bool isOpen(){ return opened; };
29 int rewind( );
30 int close( );
31 int read( UpaRawinData &data );
32 int readId( String &rid );
33 Date getDate();
34 const char *getDatestr();
35 int write( UpaRawinData &data );
36
37 enum Type {
38 UNK,
39 WXP,
40 NETCDF,
41 UNISYS
42 };
43
44 static int checkType( const char *filename );
45 };
46}
47#endif
48
This class stores date and time information.
Definition Date.h:8
This is a variable length string class.
Definition String.h:5
This class reads in and parses upper air data from a converted file.
Definition UpaFile.h:10
int write(UpaRawinData &data)
Definition UpaFile.cc:164
int setDate(Date &rdate)
Definition UpaFile.cc:115
int getDate(Date &rdate)
Definition UpaFile.cc:125
int read(UpaRawinData &data)
Definition UpaFile.cc:154
int readId(String &rid)
Definition UpaFile.cc:144
This class stores upper air sounding data by type (mandatory, significant, wind levels)
Definition UpaRawinData.h:10
This class reads in and parses upper air data from a converted file.
Definition UpaWxpFile.h:10
All WXP classes fall under the WXP namespace.
Definition Angle.h:4