WXP C++ Library Version 6.74.6
Loading...
Searching...
No Matches
StormAttr.h
1#ifndef _WINC_STORMATTR
2#define _WINC_STORMATTR
3
4#include <WXP/Const.h>
5
6namespace WXP {
7 struct StormAttr {
8 int type;
9 char id[4];
10 float ang;
11 float rad;
12 int tvs;
13 int meso;
14 int hail;
15 int shail;
16 float hsize;
17 float vil;
18 float max_dbz;
19 float max_dbz_z;
20 float vlow;
21 float tops;
22 float dir;
23 float spd;
24 float mw_vol;
26 StormAttr();
27 int init();
28 int checkType( const char *str );
29 int decode( const char *str );
30 inline bool isValid(){ return ang != Const::MISS; };
31 inline int getType(){ return type; };
32 inline const char *getId(){ return id; };
33 inline float getAng(){ return ang; };
34 inline float getRad(){ return rad; };
35 inline int getTvs(){ return tvs; };
36 inline int getMeso(){ return meso; };
37 inline int getHail(){ return hail; };
38 inline int getSHail(){ return shail; };
39 inline float getHSize(){ return hsize; };
40 inline float getVil(){ return vil; };
41 inline float getMaxDbz(){ return max_dbz; };
42 inline float getMaxDbzZ(){ return max_dbz_z; };
43 inline float getVLow(){ return vlow; };
44 inline float getTops(){ return tops; };
45 inline float getDir(){ return dir; };
46 inline float getSpd(){ return spd; };
47 inline float getMWVol(){ return mw_vol; };
48 int print();
49 };
50
51}
52#endif
static const int MISS
Definition: Const.h:7
All WXP classes fall under the WXP namespace.
Definition: Angle.h:4
This struct stores storm attribute data from NIDS data.
Definition: StormAttr.h:7
float dir
Definition: StormAttr.h:22
int hail
Definition: StormAttr.h:14
float max_dbz_z
Definition: StormAttr.h:19
float vlow
Definition: StormAttr.h:20
float mw_vol
Definition: StormAttr.h:24
float ang
Definition: StormAttr.h:10
int meso
Definition: StormAttr.h:13
int shail
Definition: StormAttr.h:15
float max_dbz
Definition: StormAttr.h:18
int tvs
Definition: StormAttr.h:12
float hsize
Definition: StormAttr.h:16
float spd
Definition: StormAttr.h:23
float vil
Definition: StormAttr.h:17
float rad
Definition: StormAttr.h:11