WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
SfcDecode.h
1#ifndef _WINC_SFCDECODE
2#define _WINC_SFCDECODE
3
4#include <WXP/Date.h>
5#include <WXP/DateRange.h>
6#include <WXP/Filename.h>
7#include <WXP/SfcFile.h>
8#include <WXP/SfcHash.h>
9
10namespace WXP {
11 class SfcDecode {
12 int ver;
13 int update;
14 int min;
15 int app;
16 int stype;
17 Date date;
18 Date fdate;
19 DateRange drange;
20 Filename infile;
21 Filename outfile;
22 SfcFile sfile;
23 SfcHash shash;
24
25 public:
26 SfcDecode();
27 SfcDecode( const char *filename );
28 int init();
29 int setParam( const char *str );
30 int setInput( const char *conv );
31 int setOutput( const char *conv );
32 int setHour( const char *str );
33 int setDate( Date &rdate );
34 int setFileDate( Date &rdate );
35 bool checkSave( SfcData &data );
36 int decode( Date &date );
37 int decode( const char *filename );
38 int decode();
39
40 static const int METAR = 0x1;
41 static const int SPECI = 0x2;
42 static const int SA = 0x4;
43 static const int SP = 0x8;
44 static const int SYNOP = 0x10;
45 static const int SHIP = 0x20;
46 static const int BUOY = 0x40;
47 static const int DRIBU = 0x80;
48 static const int MOBIL = 0x100;
49 static const int CMAN = 0x200;
50 static const int MISC = 0x400;
51 };
52}
53#endif
This class is used to set a valid range of time.
Definition DateRange.h:7
This class stores date and time information.
Definition Date.h:8
This class creates filenames.
Definition Filename.h:11
This class stores surface data.
Definition SfcData.h:12
This class decodes METAR, SAO and SYNOP data files.
Definition SfcDecode.h:11
This class reads in surface data from a file from file.
Definition SfcFile.h:12
This class sets up a hash table for surface data. Used with decoder.
Definition SfcHash.h:8
All WXP classes fall under the WXP namespace.
Definition Angle.h:4