CigiIGCtrlV1.h

Go to the documentation of this file.
00001 
00056 #if !defined(_CIGI_IG_CTRL_V1_INCLUDED_)
00057 #define _CIGI_IG_CTRL_V1_INCLUDED_
00058 
00059 
00060 #include "CigiBaseIGCtrl.h"
00061 
00062 
00063 
00064 
00065 //=========================================================
00068 class CIGI_SPEC CigiIGCtrlV1 : public CigiBaseIGCtrl  
00069 {
00070 public:
00071         CigiIGCtrlV1();
00072         virtual ~CigiIGCtrlV1();
00073 
00074 
00075    //==> Buffer Packing/Unpacking
00076 
00077    //=========================================================
00088         virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00089 
00090    //=========================================================
00100         virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00101 
00102 
00103 
00104    //==> Accessing Member Variable Values functions
00105 
00106 
00107    //+> Frame Counter
00108 
00109    //=========================================================
00117    int SetFrameCntr(const Cigi_uint32 FrameCntrIn, bool bndchk=true)
00118    {
00119       FrameCntr = FrameCntrIn;
00120       LastRcvdIGFrame = FrameCntrIn;
00121 
00122       return(CIGI_SUCCESS);
00123    }
00124 
00125 
00126    //+> Timestamp
00127 
00128    //=========================================================
00132    Cigi_uint32 GetTimeStamp(void) const { return(TimeStampV1); }
00133 
00134    //=========================================================
00143         int SetTimeStamp(const Cigi_uint32 TimeStamp, bool bndchk=true);
00144 
00145 
00146    //+> Tracking Device Enable
00147 
00148    //=========================================================
00152    TrackDeviceEnGrp GetTrackDeviceEn(void) const { return(TrackDeviceEn); }
00153 
00154    //=========================================================
00162         int SetTrackDeviceEn(const TrackDeviceEnGrp TrackDeviceEnIn, bool bndchk=true);
00163 
00164 
00165    //+> Boresight Tracking Device
00166 
00167    //=========================================================
00171    bool GetBoresightTrackDevice(void) const { return(BoresightTrackDevice); }
00172 
00173    //=========================================================
00182         int SetBoresightTrackDevice(const bool BoresightTrackDeviceIn,
00183                                  bool bndchk=true)
00184    {
00185       BoresightTrackDevice = BoresightTrackDeviceIn;
00186 
00187       return(CIGI_SUCCESS);
00188 
00189    }
00190 
00191 
00192 };
00193 
00194 #endif // !defined(_CIGI_IG_CTRL_V1_INCLUDED_)

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