WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
UpaWmoData.h
1#ifndef _WINC_UPAWMODATA
2#define _WINC_UPAWMODATA
3
4#include <WXP/Date.h>
5#include <WXP/StrLib.h>
6
7namespace WXP {
8 class UpaWmoData {
9 char id[11];
10 char data[1000];
11 Date date;
12 int type;
13 char wmo[21];
14
15 public:
16 static const int max_data = 1000;
17
18 UpaWmoData();
19 int init();
20
21 inline int setId( const char *rid ){ StrLib::copy( id, 11, rid ); return 1; }
22 inline const char *getId(){ return id; }
23
24 inline int setData( const char *rdata ){
25 StrLib::copy( data, max_data, rdata ); return 1; }
26 inline const char *getData(){ return data; }
27
28 inline int setDate( Date &rdate ){ date = rdate; return 1; }
29 inline Date getDate(){ return date; }
30
31 inline int setType( int rtype ){ type = rtype; return 1; }
32 inline int getType(){ return type; }
33
34 inline int setWmo( const char *rwmo ){
35 StrLib::copy( wmo, 21, rwmo ); return 1; }
36 inline const char *getWmo(){ return wmo; }
37
38 int print();
39
40 friend class UpaWmoFile;
41 friend class UpaTool;
42 friend class UpaDecode;
43
44 enum DataType {
45 NONE,
46 TTAA,
47 TTBB,
48 TTCC,
49 TTDD,
50 PPAA,
51 PPBB,
52 PPCC,
53 PPDD,
54 UUAA,
55 UUBB,
56 UUCC,
57 UUDD,
58 IIAA,
59 IIBB,
60 IICC,
61 IIDD,
62 EEBB,
63 EEDD
64 };
65 };
66}
67
68#endif
This class stores date and time information.
Definition Date.h:8
static int copy(char *s1, int len1, const char s2)
Definition StrLib.cc:506
This decodes upper air data files.
Definition UpaDecode.h:11
This class is a set of tools to decode and manage upper air data.
Definition UpaTool.h:10
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
All WXP classes fall under the WXP namespace.
Definition Angle.h:4