00001
00060 #if !defined(_CIGI_VIEW_DEF_V1_INCLUDED_)
00061 #define _CIGI_VIEW_DEF_V1_INCLUDED_
00062
00063 #include "CigiBaseViewDef.h"
00064
00065
00066
00067 class CIGI_SPEC CigiViewDefV1 : public CigiBaseViewDef
00068 {
00069
00070 public:
00071
00072
00073
00074
00077 CigiViewDefV1();
00078
00079
00082 virtual ~CigiViewDefV1();
00083
00084
00085
00086
00087
00098 virtual int Pack(CigiBasePacket * Base, Cigi_uint8 * Buff, void *Spec) const;
00099
00100
00110 virtual int Unpack(Cigi_uint8 * Buff, bool Swap, void *Spec);
00111
00112
00113
00114
00115
00116
00117
00118
00125 int SetViewID(const Cigi_uint8 ViewIDIn, bool bndchk=true);
00126
00127
00130 Cigi_uint8 GetViewID(void) const
00131 {
00132 if(ViewID < 31)
00133 return((Cigi_uint8)ViewID);
00134 else
00135 return((Cigi_uint8)0x1f);
00136 }
00137
00138
00139
00140
00141
00148 int SetGroupID(const Cigi_uint8 GroupIDIn, bool bndchk=true);
00149
00150
00153 Cigi_uint8 GetGroupID(void) const { return(GroupID); }
00154
00155
00156
00157
00158
00166 int SetTrackerAssigned(const bool TrackerAssignedIn, bool bndchk=true)
00167 {
00168 TrackerAssigned = TrackerAssignedIn;
00169 return(CIGI_SUCCESS);
00170 }
00171
00172
00175 bool GetTrackerAssigned(void) const { return(TrackerAssigned); }
00176
00177 };
00178
00179
00180 #endif // #if !defined(_CIGI_VIEW_DEF_V1_INCLUDED_)