00001 #ifndef _WINC_VCOORD
00002 #define _WINC_VCOORD
00003
00004 namespace WXP {
00005 class VCoord {
00006 int type;
00007 float val;
00008 public:
00009
00010 VCoord();
00011 VCoord( int rtype, float rval );
00012 int init();
00013 int set( int rtype, float rval );
00014 inline int setType( int rtype ){ type = rtype; return 1; };
00015 inline int getType(){ return type; };
00016 inline int setVal( float rval ){ val = rval; return 1; };
00017 inline float getVal(){ return val; };
00018 int print();
00019
00020 enum Type {
00021 SFC,
00022 FREEZE,
00023 LCL,
00024 MAXWND,
00025 TROP,
00026 PRES,
00027 HEIGHT,
00028 POT
00029 };
00030 const static int PRESS = PRES;
00031
00032 static bool equal( VCoord a, VCoord b );
00033
00034 friend class Level;
00035 };
00036 }
00037 #endif