CigiSOFV2.h

Go to the documentation of this file.
00001 
00053 #if !defined(_CIGI_SOF_V2_INCLUDED_)
00054 #define _CIGI_SOF_V2_INCLUDED_
00055 
00056 
00057 #include "CigiBaseSOF.h"
00058 
00059 
00060 
00061 
00062 
00063 //=========================================================
00066 class CIGI_SPEC CigiSOFV2 : public CigiBaseSOF  
00067 {
00068 public:
00069         CigiSOFV2();
00070         virtual ~CigiSOFV2();
00071 
00072 
00073 
00074    //==> Buffer Packing/Unpacking
00075 
00076    //=========================================================
00087         virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00088 
00089    //=========================================================
00099         virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00100 
00101 
00102    //==> Accessing Member Variable Values functions
00103 
00104 
00105    //+> Frame Counter
00106 
00107    //=========================================================
00111    Cigi_uint32 GetFrameCntr(void) const { return(FrameCntr); }
00112 
00113    //=========================================================
00121    int SetFrameCntr(const Cigi_uint32 FrameCntrIn, bool bndchk=true)
00122    {
00123       FrameCntr = FrameCntrIn;
00124       LastRcvdHostFrame = FrameCntrIn;
00125 
00126       return(CIGI_SUCCESS);
00127    }
00128 
00129 
00130    //+> Timestamp
00131 
00132    //=========================================================
00136    float GetTimeStamp(void) const { return(TimeStampV2); }
00137 
00138    //=========================================================
00146         int SetTimeStamp(const float TimeStamp, bool bndchk=true);
00147 
00148 };
00149 
00150 #endif // !defined(_CIGI_SOF_V2_INCLUDED_)

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