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 **
48 ** class TestMultiPartitionStage
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGTESTMULTIPARTITIONSTAGEBASE_H_
55 #define _OSGTESTMULTIPARTITIONSTAGEBASE_H_
61 #include "OSGConfig.h"
62 #include "OSGGroupDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGStage.h" // Parent
68 #include "OSGBaseFields.h" // Message type
69 #include "OSGSysFields.h" // NumPartitions type
71 #include "OSGTestMultiPartitionStageFields.h"
76 class TestMultiPartitionStage
;
78 //! \brief TestMultiPartitionStage Base Class.
80 class OSG_GROUP_DLLMAPPING TestMultiPartitionStageBase
: public Stage
84 typedef Stage Inherited
;
85 typedef Stage ParentContainer
;
87 typedef Inherited::TypeObject TypeObject
;
88 typedef TypeObject::InitPhase InitPhase
;
90 OSG_GEN_INTERNALPTR(TestMultiPartitionStage
);
92 /*========================== PUBLIC =================================*/
98 MessageFieldId
= Inherited::NextFieldId
,
99 NumPartitionsFieldId
= MessageFieldId
+ 1,
100 OrderFieldId
= NumPartitionsFieldId
+ 1,
101 UseGroupFieldId
= OrderFieldId
+ 1,
102 NextFieldId
= UseGroupFieldId
+ 1
105 static const OSG::BitVector MessageFieldMask
=
106 (TypeTraits
<BitVector
>::One
<< MessageFieldId
);
107 static const OSG::BitVector NumPartitionsFieldMask
=
108 (TypeTraits
<BitVector
>::One
<< NumPartitionsFieldId
);
109 static const OSG::BitVector OrderFieldMask
=
110 (TypeTraits
<BitVector
>::One
<< OrderFieldId
);
111 static const OSG::BitVector UseGroupFieldMask
=
112 (TypeTraits
<BitVector
>::One
<< UseGroupFieldId
);
113 static const OSG::BitVector NextFieldMask
=
114 (TypeTraits
<BitVector
>::One
<< NextFieldId
);
116 typedef SFString SFMessageType
;
117 typedef SFInt32 SFNumPartitionsType
;
118 typedef MFInt32 MFOrderType
;
119 typedef SFBool SFUseGroupType
;
121 /*---------------------------------------------------------------------*/
122 /*! \name Class Get */
125 static FieldContainerType
&getClassType (void);
126 static UInt32
getClassTypeId (void);
127 static UInt16
getClassGroupId(void);
130 /*---------------------------------------------------------------------*/
131 /*! \name FieldContainer Get */
134 virtual FieldContainerType
&getType (void);
135 virtual const FieldContainerType
&getType (void) const;
137 virtual UInt32
getContainerSize(void) const;
140 /*---------------------------------------------------------------------*/
141 /*! \name Field Get */
145 SFString
*editSFMessage (void);
146 const SFString
*getSFMessage (void) const;
148 SFInt32
*editSFNumPartitions (void);
149 const SFInt32
*getSFNumPartitions (void) const;
151 MFInt32
*editMFOrder (void);
152 const MFInt32
*getMFOrder (void) const;
154 SFBool
*editSFUseGroup (void);
155 const SFBool
*getSFUseGroup (void) const;
158 std::string
&editMessage (void);
159 const std::string
&getMessage (void) const;
161 Int32
&editNumPartitions (void);
162 Int32
getNumPartitions (void) const;
164 Int32
&editOrder (const UInt32 index
);
165 Int32
getOrder (const UInt32 index
) const;
167 bool &editUseGroup (void);
168 bool getUseGroup (void) const;
171 /*---------------------------------------------------------------------*/
172 /*! \name Field Set */
175 void setMessage (const std::string
&value
);
176 void setNumPartitions (const Int32 value
);
177 void setUseGroup (const bool value
);
180 /*---------------------------------------------------------------------*/
181 /*! \name Ptr MField Set */
185 /*---------------------------------------------------------------------*/
186 /*! \name Binary Access */
189 virtual SizeT
getBinSize (ConstFieldMaskArg whichField
);
190 virtual void copyToBin (BinaryDataHandler
&pMem
,
191 ConstFieldMaskArg whichField
);
192 virtual void copyFromBin(BinaryDataHandler
&pMem
,
193 ConstFieldMaskArg whichField
);
197 /*---------------------------------------------------------------------*/
198 /*! \name Construction */
201 static TestMultiPartitionStageTransitPtr
create (void);
202 static TestMultiPartitionStage
*createEmpty (void);
204 static TestMultiPartitionStageTransitPtr
createLocal (
205 BitVector bFlags
= FCLocal::All
);
207 static TestMultiPartitionStage
*createEmptyLocal(
208 BitVector bFlags
= FCLocal::All
);
210 static TestMultiPartitionStageTransitPtr
createDependent (BitVector bFlags
);
213 /*---------------------------------------------------------------------*/
217 virtual FieldContainerTransitPtr
shallowCopy (void) const;
218 virtual FieldContainerTransitPtr
shallowCopyLocal(
219 BitVector bFlags
= FCLocal::All
) const;
220 virtual FieldContainerTransitPtr
shallowCopyDependent(
221 BitVector bFlags
) const;
224 /*========================= PROTECTED ===============================*/
228 static TypeObject _type
;
230 static void classDescInserter(TypeObject
&oType
);
231 static const Char8
*getClassname (void );
233 /*---------------------------------------------------------------------*/
238 SFInt32 _sfNumPartitions
;
243 /*---------------------------------------------------------------------*/
244 /*! \name Constructors */
247 TestMultiPartitionStageBase(void);
248 TestMultiPartitionStageBase(const TestMultiPartitionStageBase
&source
);
251 /*---------------------------------------------------------------------*/
252 /*! \name Destructors */
255 virtual ~TestMultiPartitionStageBase(void);
258 /*---------------------------------------------------------------------*/
259 /*! \name onCreate */
264 /*---------------------------------------------------------------------*/
265 /*! \name Generic Field Access */
268 GetFieldHandlePtr
getHandleMessage (void) const;
269 EditFieldHandlePtr
editHandleMessage (void);
270 GetFieldHandlePtr
getHandleNumPartitions (void) const;
271 EditFieldHandlePtr
editHandleNumPartitions (void);
272 GetFieldHandlePtr
getHandleOrder (void) const;
273 EditFieldHandlePtr
editHandleOrder (void);
274 GetFieldHandlePtr
getHandleUseGroup (void) const;
275 EditFieldHandlePtr
editHandleUseGroup (void);
278 /*---------------------------------------------------------------------*/
282 #ifdef OSG_MT_CPTR_ASPECT
283 virtual void execSyncV( FieldContainer
&oFrom
,
284 ConstFieldMaskArg whichField
,
285 AspectOffsetStore
&oOffsets
,
286 ConstFieldMaskArg syncMode
,
287 const UInt32 uiSyncInfo
);
289 void execSync ( TestMultiPartitionStageBase
*pFrom
,
290 ConstFieldMaskArg whichField
,
291 AspectOffsetStore
&oOffsets
,
292 ConstFieldMaskArg syncMode
,
293 const UInt32 uiSyncInfo
);
297 /*---------------------------------------------------------------------*/
302 /*---------------------------------------------------------------------*/
303 /*! \name Aspect Create */
306 #ifdef OSG_MT_CPTR_ASPECT
307 virtual FieldContainer
*createAspectCopy(
308 const FieldContainer
*pRefAspect
) const;
312 /*---------------------------------------------------------------------*/
316 /*---------------------------------------------------------------------*/
320 virtual void resolveLinks(void);
323 /*========================== PRIVATE ================================*/
326 /*---------------------------------------------------------------------*/
328 // prohibit default functions (move to 'public' if you need one)
329 void operator =(const TestMultiPartitionStageBase
&source
);
332 typedef TestMultiPartitionStageBase
*TestMultiPartitionStageBaseP
;
334 typedef CoredNodeRefPtr
<TestMultiPartitionStage
> TestMultiPartitionStageNodeRefPtr
;
335 typedef CoredNodeMTRefPtr
<TestMultiPartitionStage
> TestMultiPartitionStageNodeMTRefPtr
;
339 #endif /* _OSGTESTMULTIPARTITIONSTAGEBASE_H_ */