00001 00055 #if !defined(_CIGI_BASE_CONF_CLAMP_ENTITY_CTRL_INCLUDED_) 00056 #define _CIGI_BASE_CONF_CLAMP_ENTITY_CTRL_INCLUDED_ 00057 00058 #include "CigiBasePacket.h" 00059 00060 // ==================================================================== 00061 // preprocessor definitions 00062 // ==================================================================== 00063 00064 #define CIGI_CONF_CLAMP_ENTITY_CTRL_PACKET_ID_V3 3 00065 #define CIGI_CONF_CLAMP_ENTITY_CTRL_PACKET_SIZE_V3 24 00066 00067 00068 class CigiConfClampEntityCtrlV3; 00069 00070 00071 class CIGI_SPEC CigiBaseConfClampEntityCtrl : public CigiBasePacket 00072 { 00073 00074 friend class CigiConfClampEntityCtrlV3; 00075 00076 public: 00077 00078 //==> Management 00079 00080 //========================================================= 00083 CigiBaseConfClampEntityCtrl(); 00084 00085 //========================================================= 00088 virtual ~CigiBaseConfClampEntityCtrl(); 00089 00090 00091 //==> Buffer Packing/Unpacking 00092 00093 //========================================================= 00104 virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const=0; 00105 00106 //========================================================= 00116 virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec) =0; 00117 00118 //========================================================= 00130 virtual int GetCnvt(CigiVersionID &CnvtVersion, 00131 CigiCnvtInfoType::Type &CnvtInfo); 00132 00133 00134 00135 //==> Accessing Member Variable Values functions 00136 00137 //+> EntityID 00138 00139 //========================================================= 00146 int SetEntityID(const Cigi_uint16 EntityIDIn, bool bndchk=true) 00147 { 00148 EntityID = EntityIDIn; 00149 return(CIGI_SUCCESS); 00150 } 00151 00152 //========================================================= 00155 Cigi_uint16 GetEntityID(void) const { return(EntityID); } 00156 00157 00158 //+> Yaw 00159 00160 //========================================================= 00167 int SetYaw(const float YawIn, bool bndchk=true); 00168 00169 //========================================================= 00172 float GetYaw(void) const { return(Yaw); } 00173 00174 00175 //+> Lat 00176 00177 //========================================================= 00184 int SetLat(const double LatIn, bool bndchk=true); 00185 00186 //========================================================= 00189 double GetLat(void) const { return(Lat); } 00190 00191 00192 //+> Lon 00193 00194 //========================================================= 00201 int SetLon(const double LonIn, bool bndchk=true); 00202 00203 //========================================================= 00206 double GetLon(void) const { return(Lon); } 00207 00208 00209 00210 protected: 00211 00212 //==> Member variables 00213 00214 //========================================================= 00218 Cigi_uint16 EntityID; 00219 00220 //========================================================= 00224 float Yaw; 00225 00226 //========================================================= 00230 double Lat; 00231 00232 //========================================================= 00236 double Lon; 00237 00238 00239 }; 00240 00241 #endif // #if !defined(_CIGI_BASE_CONF_CLAMP_ENTITY_CTRL_INCLUDED_)