00001 #ifndef _WINC_HURADV
00002 #define _WINC_HURADV
00003
00004 #include <WXP/Date.h>
00005
00006 namespace WXP {
00007 struct HurAdv {
00008 char wmo[20];
00009 int locate;
00010 char name[20];
00011 char num[10];
00012 Date date;
00013 float lat, lon;
00014 float wind;
00015 float pres;
00016 int level;
00017 int type;
00018
00019 enum Loc {
00020 NONE,
00021 ATL,
00022 EPAC,
00023 CPAC,
00024 WPAC,
00025 SPAC,
00026 NIND,
00027 SIND
00028 };
00029
00030 enum StormLevel {
00031 WAVE,
00032 DEPRESS,
00033 STORM,
00034 STORM1,
00035 STORM2,
00036 STORM3,
00037 STORM4,
00038 STORM4S,
00039 STORM5
00040 };
00041
00042 enum StormType {
00043 TROP,
00044 SUBTROP,
00045 EXTRATROP
00046 };
00047
00048 HurAdv();
00049 int init();
00050 int print();
00051 int printTable();
00052
00053 static int getLevel( float spd );
00054 static const char *getLoc( int locate );
00055 static const char *getLocAbbr( int locate );
00056 static const char *getTypeAbbr( int type );
00057 static const char *getLevelAbbr( int type );
00058 static const char*getLabel( int locate, int type, int level );
00059 };
00060
00061 }
00062 #endif