WXP C++ Library Version 6.74.9
Loading...
Searching...
No Matches
UpaLevel.h
1#ifndef _WINC_UPALEVEL
2#define _WINC_UPALEVEL
3
4namespace WXP {
5 struct UpaLevel {
6 int type;
7 float p;
8 float h;
9 float t;
10 float td;
11 float dir;
12 float spd;
14 int set( float rp, float rh, float rt, float rtd, float rdir, float rspd );
16 inline int setPres( float v ){ p = v; return 1; }
18 inline float getPres(){ return p; }
20 inline int setHght( float v ){ h = v; return 1; }
22 inline float getHght(){ return h; }
24 inline int setTemp( float v ){ t = v; return 1; }
26 inline float getTemp(){ return t; }
28 inline int setDewpt( float v ){ td = v; return 1; }
30 inline float getDewpt(){ return td; }
32 inline int setWDir( float v ){ dir = v; return 1; }
34 inline float getWDir(){ return dir; }
36 inline int setWSpd( float v ){ spd = v; return 1; }
38 inline float getWSpd(){ return spd; }
40 inline int setType( int v ){ type = v; return 1; }
42 inline int getType(){ return type; }
43
44 static const int NONE = 0;
45 static const int MAN = 1;
46 static const int SIG = 2;
47 static const int WND = 3;
48 static const int SFC = 0x04;
49 static const int TROP = 0x10;
50 static const int MWND = 0x20;
51 static const int LCL = 0x40;
53 UpaLevel();
54 int init();
55 int update( UpaLevel &level );
56 int print();
57
58 static bool isMandatory( float p );
59 static int getMandatoryIndex( float p );
60 };
61}
62#endif
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct contains data for a specific upper air level.
Definition UpaLevel.h:5
int setTemp(float v)
Definition UpaLevel.h:24
int getType()
Definition UpaLevel.h:42
int setType(int v)
Definition UpaLevel.h:40
static const int MWND
Definition UpaLevel.h:50
float td
Definition UpaLevel.h:10
float dir
Definition UpaLevel.h:11
float getDewpt()
Definition UpaLevel.h:30
int set(float rp, float rh, float rt, float rtd, float rdir, float rspd)
Definition UpaLevel.cc:45
static bool isMandatory(float p)
Definition UpaLevel.cc:84
float spd
Definition UpaLevel.h:12
static const int SIG
Definition UpaLevel.h:46
float p
Definition UpaLevel.h:7
static const int TROP
Definition UpaLevel.h:49
UpaLevel()
Definition UpaLevel.cc:18
float getWSpd()
Definition UpaLevel.h:38
static const int MAN
Definition UpaLevel.h:45
float getPres()
Definition UpaLevel.h:18
int setHght(float v)
Definition UpaLevel.h:20
float getHght()
Definition UpaLevel.h:22
int type
Definition UpaLevel.h:6
float getTemp()
Definition UpaLevel.h:26
float getWDir()
Definition UpaLevel.h:34
int update(UpaLevel &level)
Definition UpaLevel.cc:60
int init()
Definition UpaLevel.cc:25
int print()
Definition UpaLevel.cc:74
int setWSpd(float v)
Definition UpaLevel.h:36
static const int SFC
Definition UpaLevel.h:48
static const int LCL
Definition UpaLevel.h:51
int setWDir(float v)
Definition UpaLevel.h:32
int setPres(float v)
Definition UpaLevel.h:16
static const int WND
Definition UpaLevel.h:47
float h
Definition UpaLevel.h:8
static int getMandatoryIndex(float p)
Definition UpaLevel.cc:93
static const int NONE
Definition UpaLevel.h:44
int setDewpt(float v)
Definition UpaLevel.h:28
float t
Definition UpaLevel.h:9