00001 #ifndef _WINC_SYNOPTOOL
00002 #define _WINC_SYNOPTOOL
00003
00004 #include <WXP/SfcData.h>
00005 #include <WXP/SfcWmoData.h>
00006
00007 namespace WXP {
00008 struct SynopTool {
00009 static int decode( SfcWmoData &data, SfcData &sfcdata);
00010 static int decode( char *data, SfcData &sfcdata);
00011 static float ceiling( int cb );
00012 static float visibility( int vis );
00013 static int toCeilingCode( float cb );
00014
00015 static int weather( int wx, char *wx_str );
00016 static int autoweather( int wx, char *wx_str );
00017
00018 enum RepType {
00019 UNK,
00020 LAND,
00021 SHIP,
00022 BUOY,
00023 DRIBU,
00024 CMAN,
00025 MISC
00026 };
00027
00028 enum {
00029 KNT,
00030 MPS
00031 };
00032 };
00033 }
00034 #endif