1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
15 * This library is free software; you can redistribute it and/or modify it *
16 * under the terms of the GNU Library General Public License as published *
17 * by the Free Software Foundation, version 2. *
19 * This library is distributed in the hope that it will be useful, but *
20 * WITHOUT ANY WARRANTY; without even the implied warranty of *
21 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
22 * Library General Public License for more details. *
24 * You should have received a copy of the GNU Library General Public *
25 * License along with this library; if not, write to the Free Software *
26 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
42 ** This file is automatically generated. **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
47 ** Do not change this file, changes should be done in the derived **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGFCDTESTFCBASE_H_
55 #define _OSGFCDTESTFCBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGNodeCore.h" // Parent
68 #include "OSGSysFields.h" // FieldSFPub type
70 #include "OSGFCDTestFCFields.h"
77 //! \brief FCDTestFC Base Class.
79 class OSG_SYSTEM_DLLMAPPING FCDTestFCBase
: public NodeCore
83 typedef NodeCore Inherited
;
84 typedef NodeCore ParentContainer
;
86 typedef Inherited::TypeObject TypeObject
;
87 typedef TypeObject::InitPhase InitPhase
;
89 OSG_GEN_INTERNALPTR(FCDTestFC
);
91 /*========================== PUBLIC =================================*/
97 FieldSFPubFieldId
= Inherited::NextFieldId
,
98 FieldSFProFieldId
= FieldSFPubFieldId
+ 1,
99 FieldSFNoFieldId
= FieldSFProFieldId
+ 1,
100 FieldMFPubFieldId
= FieldSFNoFieldId
+ 1,
101 FieldMFProFieldId
= FieldMFPubFieldId
+ 1,
102 FieldMFNoFieldId
= FieldMFProFieldId
+ 1,
103 NextFieldId
= FieldMFNoFieldId
+ 1
106 static const OSG::BitVector FieldSFPubFieldMask
=
107 (TypeTraits
<BitVector
>::One
<< FieldSFPubFieldId
);
108 static const OSG::BitVector FieldSFProFieldMask
=
109 (TypeTraits
<BitVector
>::One
<< FieldSFProFieldId
);
110 static const OSG::BitVector FieldSFNoFieldMask
=
111 (TypeTraits
<BitVector
>::One
<< FieldSFNoFieldId
);
112 static const OSG::BitVector FieldMFPubFieldMask
=
113 (TypeTraits
<BitVector
>::One
<< FieldMFPubFieldId
);
114 static const OSG::BitVector FieldMFProFieldMask
=
115 (TypeTraits
<BitVector
>::One
<< FieldMFProFieldId
);
116 static const OSG::BitVector FieldMFNoFieldMask
=
117 (TypeTraits
<BitVector
>::One
<< FieldMFNoFieldId
);
118 static const OSG::BitVector NextFieldMask
=
119 (TypeTraits
<BitVector
>::One
<< NextFieldId
);
121 typedef SFUInt32 SFFieldSFPubType
;
122 typedef SFUInt32 SFFieldSFProType
;
123 typedef SFUInt32 SFFieldSFNoType
;
124 typedef MFUInt32 MFFieldMFPubType
;
125 typedef MFUInt32 MFFieldMFProType
;
126 typedef MFUInt32 MFFieldMFNoType
;
128 /*---------------------------------------------------------------------*/
129 /*! \name Class Get */
132 static FieldContainerType
&getClassType (void);
133 static UInt32
getClassTypeId (void);
134 static UInt16
getClassGroupId(void);
137 /*---------------------------------------------------------------------*/
138 /*! \name FieldContainer Get */
141 virtual FieldContainerType
&getType (void);
142 virtual const FieldContainerType
&getType (void) const;
144 virtual UInt32
getContainerSize(void) const;
147 /*---------------------------------------------------------------------*/
148 /*! \name Field Get */
152 SFUInt32
*editSFFieldSFPub (void);
153 const SFUInt32
*getSFFieldSFPub (void) const;
155 MFUInt32
*editMFFieldMFPub (void);
156 const MFUInt32
*getMFFieldMFPub (void) const;
159 UInt32
&editFieldSFPub (void);
160 UInt32
getFieldSFPub (void) const;
162 UInt32
&editFieldMFPub (const UInt32 index
);
163 UInt32
getFieldMFPub (const UInt32 index
) const;
166 /*---------------------------------------------------------------------*/
167 /*! \name Field Set */
170 void setFieldSFPub (const UInt32 value
);
173 /*---------------------------------------------------------------------*/
174 /*! \name Ptr MField Set */
178 /*---------------------------------------------------------------------*/
179 /*! \name Binary Access */
182 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
183 virtual void copyToBin (BinaryDataHandler
&pMem
,
184 ConstFieldMaskArg whichField
);
185 virtual void copyFromBin(BinaryDataHandler
&pMem
,
186 ConstFieldMaskArg whichField
);
190 /*---------------------------------------------------------------------*/
191 /*! \name Construction */
194 static FCDTestFCTransitPtr
create (void);
195 static FCDTestFC
*createEmpty (void);
197 static FCDTestFCTransitPtr
createLocal (
198 BitVector bFlags
= FCLocal::All
);
200 static FCDTestFC
*createEmptyLocal(
201 BitVector bFlags
= FCLocal::All
);
203 static FCDTestFCTransitPtr
createDependent (BitVector bFlags
);
206 /*---------------------------------------------------------------------*/
210 virtual FieldContainerTransitPtr
shallowCopy (void) const;
211 virtual FieldContainerTransitPtr
shallowCopyLocal(
212 BitVector bFlags
= FCLocal::All
) const;
213 virtual FieldContainerTransitPtr
shallowCopyDependent(
214 BitVector bFlags
) const;
217 /*========================= PROTECTED ===============================*/
221 static TypeObject _type
;
223 static void classDescInserter(TypeObject
&oType
);
224 static const Char8
*getClassname (void );
226 /*---------------------------------------------------------------------*/
230 SFUInt32 _sfFieldSFPub
;
231 SFUInt32 _sfFieldSFPro
;
232 SFUInt32 _sfFieldSFNo
;
233 MFUInt32 _mfFieldMFPub
;
234 MFUInt32 _mfFieldMFPro
;
235 MFUInt32 _mfFieldMFNo
;
238 /*---------------------------------------------------------------------*/
239 /*! \name Constructors */
243 FCDTestFCBase(const FCDTestFCBase
&source
);
246 /*---------------------------------------------------------------------*/
247 /*! \name Destructors */
250 virtual ~FCDTestFCBase(void);
253 /*---------------------------------------------------------------------*/
254 /*! \name onCreate */
259 /*---------------------------------------------------------------------*/
260 /*! \name Generic Field Access */
263 GetFieldHandlePtr
getHandleFieldSFPub (void) const;
264 EditFieldHandlePtr
editHandleFieldSFPub (void);
265 GetFieldHandlePtr
getHandleFieldSFPro (void) const;
266 EditFieldHandlePtr
editHandleFieldSFPro (void);
267 GetFieldHandlePtr
getHandleFieldSFNo (void) const;
268 EditFieldHandlePtr
editHandleFieldSFNo (void);
269 GetFieldHandlePtr
getHandleFieldMFPub (void) const;
270 EditFieldHandlePtr
editHandleFieldMFPub (void);
271 GetFieldHandlePtr
getHandleFieldMFPro (void) const;
272 EditFieldHandlePtr
editHandleFieldMFPro (void);
273 GetFieldHandlePtr
getHandleFieldMFNo (void) const;
274 EditFieldHandlePtr
editHandleFieldMFNo (void);
277 /*---------------------------------------------------------------------*/
278 /*! \name Field Get */
282 SFUInt32
*editSFFieldSFPro (void);
283 const SFUInt32
*getSFFieldSFPro (void) const;
285 MFUInt32
*editMFFieldMFPro (void);
286 const MFUInt32
*getMFFieldMFPro (void) const;
289 UInt32
&editFieldSFPro (void);
290 UInt32
getFieldSFPro (void) const;
292 UInt32
&editFieldMFPro (const UInt32 index
);
293 UInt32
getFieldMFPro (const UInt32 index
) const;
296 /*---------------------------------------------------------------------*/
297 /*! \name Field Set */
300 void setFieldSFPro (const UInt32 value
);
303 /*---------------------------------------------------------------------*/
304 /*! \name Ptr MField Set */
308 /*---------------------------------------------------------------------*/
312 #ifdef OSG_MT_CPTR_ASPECT
313 virtual void execSyncV( FieldContainer
&oFrom
,
314 ConstFieldMaskArg whichField
,
315 AspectOffsetStore
&oOffsets
,
316 ConstFieldMaskArg syncMode
,
317 const UInt32 uiSyncInfo
);
319 void execSync ( FCDTestFCBase
*pFrom
,
320 ConstFieldMaskArg whichField
,
321 AspectOffsetStore
&oOffsets
,
322 ConstFieldMaskArg syncMode
,
323 const UInt32 uiSyncInfo
);
327 /*---------------------------------------------------------------------*/
332 /*---------------------------------------------------------------------*/
333 /*! \name Aspect Create */
336 #ifdef OSG_MT_CPTR_ASPECT
337 virtual FieldContainer
*createAspectCopy(
338 const FieldContainer
*pRefAspect
) const;
342 /*---------------------------------------------------------------------*/
346 /*---------------------------------------------------------------------*/
350 virtual void resolveLinks(void);
353 /*========================== PRIVATE ================================*/
356 /*---------------------------------------------------------------------*/
358 // prohibit default functions (move to 'public' if you need one)
359 void operator =(const FCDTestFCBase
&source
);
362 typedef FCDTestFCBase
*FCDTestFCBaseP
;
364 typedef CoredNodeRefPtr
<FCDTestFC
> FCDTestFCNodeRefPtr
;
365 typedef CoredNodeMTRefPtr
<FCDTestFC
> FCDTestFCNodeMTRefPtr
;
369 #endif /* _OSGFCDTESTFCBASE_H_ */