WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcWmoFile.h
1#ifndef _WINC_SFCWMOFILE
2#define _WINC_SFCWMOFILE
3
4#include <WXP/Date.h>
5#include <WXP/File.h>
6#include <WXP/Filename.h>
7#include <WXP/SfcWmoData.h>
8
9namespace WXP {
10 class SfcWmoFile {
11 int type;
12 int location;
13 File file;
14 Date date;
15 bool opened;
16 char wmo[21];
17 char line[200];
18 char id[10];
19 char dtype[10];
20 char yyggi[10];
21 int ptype;
22 int pday;
23 int phour;
24 int pmin;
25
26 public:
27 SfcWmoFile( );
28 SfcWmoFile( const char *filename );
29 ~SfcWmoFile( );
30 int init();
31 bool isOpen();
32 int open( const char *filename );
33 int open( Filename &filename );
34 int rewind( );
35 int close( );
36 int setDate( Date &rdate );
37 int getDate( Date &rdate );
38 int checkHeader( const char *line );
39 int checkStart( const char *line );
40 int checkEnd( const char *line );
41 int read( SfcWmoData &data );
42
43 static int checkType( const char *filename );
44 /*
45 Data types
46 */
47 enum Type {
48 UNK,
49 WXP,
50 LDM
51 };
52
53 };
54}
55#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 surface reports (METAR, SAO).
Definition SfcWmoData.h:8
This class reads in surface data from a input raw data file from file.
Definition SfcWmoFile.h:10
int getDate(Date &rdate)
Definition SfcWmoFile.cc:112
int rewind()
Definition SfcWmoFile.cc:88
int checkStart(const char *line)
Definition SfcWmoFile.cc:198
int close()
Definition SfcWmoFile.cc:96
SfcWmoFile()
Definition SfcWmoFile.cc:45
static int checkType(const char *filename)
Definition SfcWmoFile.cc:25
int read(SfcWmoData &data)
Definition SfcWmoFile.cc:396
int setDate(Date &rdate)
Definition SfcWmoFile.cc:121
~SfcWmoFile()
Definition SfcWmoFile.cc:104
int open(const char *filename)
Definition SfcWmoFile.cc:63
int checkHeader(const char *line)
Definition SfcWmoFile.cc:131
All WXP classes fall under the WXP namespace.
Definition Angle.h:4