CigiEntityCtrlV1.h

Go to the documentation of this file.
00001 
00051 #if !defined(_CIGI_ENTITY_CONTROL_V1_INCLUDED_)
00052 #define _CIGI_ENTITY_CONTROL_V1_INCLUDED_
00053 
00054 
00055 #include "CigiBaseEntityCtrl.h"
00056 
00057 
00058 //=========================================================
00061 class CIGI_SPEC CigiEntityCtrlV1 : public CigiBaseEntityCtrl  
00062 {
00063 
00064 public:
00065 
00066    //=========================================================
00069    enum EntityStV1Grp
00070    {
00071       DestructV1=0,
00072       ConstructV1=1
00073    };
00074 
00075    //=========================================================
00078    enum EffectStateGrp
00079    {
00080       NoActionV1=0,
00081       LoadV1=1,
00082       LoadActivateV1=2,
00083       ActivateV1=3,
00084       DeactivateV1=4,
00085       DeactivateUnloadV1=5
00086    };
00087 
00088 
00089 
00090    //==> Management
00091 
00092    //=========================================================
00095         CigiEntityCtrlV1();
00096 
00097    //=========================================================
00100         virtual ~CigiEntityCtrlV1();
00101 
00102 
00103 
00104    //==> Buffer Packing/Unpacking
00105 
00106    //=========================================================
00117         virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00118 
00119    //=========================================================
00129         virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00130 
00131 
00132    //==> Accessing Member Variable Values functions
00133 
00134 
00135    //+> Internal Temperature
00136 
00137    //=========================================================
00146    int SetTemp(const float Temp, bool bndchk=true)
00147    {
00148       Temperature = Temp;
00149       return(CIGI_SUCCESS);
00150    }
00151 
00152    //=========================================================
00157    float GetTemp(void) const { return(Temperature); }
00158 
00159 
00160    //+> Heading
00161 
00162    //=========================================================
00171         int SetHeading(const float Heading, bool bndchk=true);
00172 
00173    //=========================================================
00178    float GetHeading(void) const { return(Yaw); }
00179 
00180 
00181    //+> Altitude
00182 
00183    //=========================================================
00191         int SetAlt(const float Alt, bool bndchk=true)
00192    {
00193       AltOrZoff = (double)Alt;
00194       return(CIGI_SUCCESS);
00195    }
00196 
00197    //=========================================================
00201    float GetAlt(void) const { return((float)AltOrZoff); }
00202 
00203 
00204    //+> Z Offset
00205 
00206    //=========================================================
00215         int SetZoff(const float Zoff, bool bndchk=true)
00216    {
00217       AltOrZoff = (double)Zoff;
00218       return(CIGI_SUCCESS);
00219    }
00220 
00221    //=========================================================
00226         float GetZoff(void) const { return((float)AltOrZoff); }
00227 
00228 
00229    //+> Entity State
00230 
00231    //=========================================================
00241         int SetEntityState(const EntityStV1Grp EntityStateIn, bool bndchk=true);
00242 
00243    //=========================================================
00249         EntityStV1Grp GetEntityState(void) const;
00250 
00251 
00252    //+> Effect State
00253 
00254    //=========================================================
00269         int SetEffectState(const EffectStateGrp EffectStateIn, bool bndchk=true);
00270 
00271    //=========================================================
00282         EffectStateGrp GetEffectState(void) const;
00283 
00284 
00285 };
00286 
00287 #endif // #if !defined(_CIGI_ENTITY_CONTROL_V1_INCLUDED_)

Generated on Wed Apr 29 08:59:56 2009 for CCL by  doxygen 1.4.7