00001 #ifndef _WINC_WXTOOL 00002 #define _WINC_WXTOOL 00003 00004 #include <WXP/CloudLayer.h> 00005 #include <WXP/String.h> 00006 00007 namespace WXP { 00008 class WxTool { 00009 public: 00010 static int setCloud( int num, CloudLayer lyrs[], CloudLayer &cld ); 00011 static float getWmoVis( int vis ); 00012 static float getWmoCldBase( int cb ); 00013 static int getMetarWeather( const char *wx, String &wx_str ); 00014 static int getMetarWeatherText( const char *wx, String &wx_str ); 00015 static const char *getWmoWeather( int wx ); 00016 static const char *getWmoAutoWeather( int wx ); 00017 static int getWeatherWmo( const char *str ); 00018 static int getWeatherText( const char *str, String &out_str ); 00019 static int getWmoCeilingToCode( float cb ); 00020 static float decodeDir( const char *dir ); 00021 static const char *getCloudStr( const char *str ); 00022 }; 00023 } 00024 #endif
1.6.1