CigiViewCtrlV1.h

Go to the documentation of this file.
00001 
00055 #if !defined(_CIGI_VIEW_CTRL_V1_INCLUDED_)
00056 #define _CIGI_VIEW_CTRL_V1_INCLUDED_
00057 
00058 #include "CigiBaseViewCtrl.h"
00059 
00060 
00061 
00062 class CIGI_SPEC CigiViewCtrlV1 : public CigiBaseViewCtrl
00063 {
00064 
00065 public:
00066 
00067    //==> Management
00068 
00069    //=========================================================
00072    CigiViewCtrlV1();
00073 
00074    //=========================================================
00077    virtual ~CigiViewCtrlV1();
00078 
00079 
00080    //==> Buffer Packing/Unpacking
00081 
00082    //=========================================================
00093    virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00094 
00095    //=========================================================
00105    virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00106 
00107 
00108 
00109    //==> Accessing Member Variable Values functions
00110 
00111    //+> ViewID
00112 
00113    //=========================================================
00121    int SetViewID(const Cigi_uint8 ViewIDIn, bool bndchk=true);
00122 
00123    //=========================================================
00126    Cigi_uint8 GetViewID(void) const
00127    {
00128       if(ViewID < 31)
00129          return((Cigi_uint8)ViewID);
00130       else
00131          return((Cigi_uint8)0x1f);
00132    }
00133 
00134 
00135    //+> GroupID
00136 
00137    //=========================================================
00144    int SetGroupID(const Cigi_uint8 GroupIDIn, bool bndchk=true);
00145 
00146    //=========================================================
00149    Cigi_uint8 GetGroupID(void) const
00150    {
00151       if(GroupID < 8)
00152          return(GroupID);
00153       else
00154          return((Cigi_uint8)0x07);
00155    }
00156 
00157 
00158 
00159 };
00160 
00161 #endif // #if !defined(_CIGI_VIEW_CTRL_V1_INCLUDED_)

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