00001 #ifndef _WINC_UPALEVEL
00002 #define _WINC_UPALEVEL
00003
00004 namespace WXP {
00005 struct UpaLevel {
00006 int type;
00007 float p;
00008 float h;
00009 float t;
00010 float td;
00011 float dir;
00012 float spd;
00013
00014 static const int NONE = 0;
00015 static const int MAN = 1;
00016 static const int SIG = 2;
00017 static const int WND = 3;
00018 static const int SFC = 0x04;
00019 static const int TROP = 0x10;
00020 static const int MWND = 0x20;
00021 static const int LCL = 0x40;
00022
00023 UpaLevel();
00024 int init();
00025 int update( UpaLevel &level );
00026 int print();
00027
00028 static bool isMandatory( float p );
00029 static int getMandatoryIndex( float p );
00030 };
00031 }
00032 #endif