WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
UpaWmoFile.h
1#ifndef _WINC_UPAWMOFILE
2#define _WINC_UPAWMOFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/UpaWmoData.h>
8
9namespace WXP {
10 class UpaWmoFile {
11 int type;
12 int location;
13 File file;
14 Date date;
15 bool opened;
16 char line[200];
17 char id[10];
18 char rep_type[10];
19 char wmo[21];
20 int prtype;
21 int prday;
22 int prhour;
23
24 public:
25 UpaWmoFile( );
26 UpaWmoFile( const char *filename );
27 ~UpaWmoFile( );
28 int init();
29 bool isOpen();
30 int open( const char *filename );
31 int open( Filename &filename );
32 int rewind( );
33 int close( );
34 int setDate( Date &rdate );
35 int getDate( Date &rdate );
36 int read( UpaWmoData &data );
37
38 static int checkType( const char *filename );
39 /*
40 Data types
41 */
42 enum Type {
43 UNK,
44 WXP,
45 LDM
46 };
47
48 };
49}
50#endif
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class hold information about raw upper air reports (TTAA, TTBB, ...).
Definition UpaWmoData.h:8
This class reads in upper air data from a input raw data file from file. Used by decoder.
Definition UpaWmoFile.h:10
int read(UpaWmoData &data)
Definition UpaWmoFile.cc:123
int rewind()
Definition UpaWmoFile.cc:85
~UpaWmoFile()
Definition UpaWmoFile.cc:101
static int checkType(const char *filename)
Definition UpaWmoFile.cc:24
int close()
Definition UpaWmoFile.cc:93
int open(const char *filename)
Definition UpaWmoFile.cc:61
UpaWmoFile()
Definition UpaWmoFile.cc:43
int getDate(Date &rdate)
Definition UpaWmoFile.cc:114
All WXP classes fall under the WXP namespace.
Definition Angle.h:4