changed: gcc8 base update
[opensg.git] / Source / System / NodeCores / Groups / Base / OSGChunkOverrideGroupBase.h
blob5bee8506d4e0eae08bc9a1d7f88f3751c2b63976
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
10 * *
11 \*---------------------------------------------------------------------------*/
12 /*---------------------------------------------------------------------------*\
13 * License *
14 * *
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. *
18 * *
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. *
23 * *
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. *
27 * *
28 \*---------------------------------------------------------------------------*/
29 /*---------------------------------------------------------------------------*\
30 * Changes *
31 * *
32 * *
33 * *
34 * *
35 * *
36 * *
37 \*---------------------------------------------------------------------------*/
39 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class ChunkOverrideGroup
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGCHUNKOVERRIDEGROUPBASE_H_
55 #define _OSGCHUNKOVERRIDEGROUPBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGGroup.h" // Parent
68 #include "OSGChunkBlockFields.h" // FallbackChunkBlock type
69 #include "OSGSysFields.h" // SubOverride type
71 #include "OSGChunkOverrideGroupFields.h"
73 OSG_BEGIN_NAMESPACE
76 class ChunkOverrideGroup;
78 //! \brief ChunkOverrideGroup Base Class.
80 class OSG_SYSTEM_DLLMAPPING ChunkOverrideGroupBase : public Group
82 public:
84 typedef Group Inherited;
85 typedef Group ParentContainer;
87 typedef Inherited::TypeObject TypeObject;
88 typedef TypeObject::InitPhase InitPhase;
90 OSG_GEN_INTERNALPTR(ChunkOverrideGroup);
92 /*========================== PUBLIC =================================*/
94 public:
96 enum
98 FallbackChunkBlockFieldId = Inherited::NextFieldId,
99 SubOverrideFieldId = FallbackChunkBlockFieldId + 1,
100 NextFieldId = SubOverrideFieldId + 1
103 static const OSG::BitVector FallbackChunkBlockFieldMask =
104 (TypeTraits<BitVector>::One << FallbackChunkBlockFieldId);
105 static const OSG::BitVector SubOverrideFieldMask =
106 (TypeTraits<BitVector>::One << SubOverrideFieldId);
107 static const OSG::BitVector NextFieldMask =
108 (TypeTraits<BitVector>::One << NextFieldId);
110 typedef SFUnrecChunkBlockPtr SFFallbackChunkBlockType;
111 typedef SFBool SFSubOverrideType;
113 /*---------------------------------------------------------------------*/
114 /*! \name Class Get */
115 /*! \{ */
117 static FieldContainerType &getClassType (void);
118 static UInt32 getClassTypeId (void);
119 static UInt16 getClassGroupId(void);
121 /*! \} */
122 /*---------------------------------------------------------------------*/
123 /*! \name FieldContainer Get */
124 /*! \{ */
126 virtual FieldContainerType &getType (void);
127 virtual const FieldContainerType &getType (void) const;
129 virtual UInt32 getContainerSize(void) const;
131 /*! \} */
132 /*---------------------------------------------------------------------*/
133 /*! \name Field Get */
134 /*! \{ */
136 const SFUnrecChunkBlockPtr *getSFFallbackChunkBlock(void) const;
137 SFUnrecChunkBlockPtr *editSFFallbackChunkBlock(void);
139 SFBool *editSFSubOverride (void);
140 const SFBool *getSFSubOverride (void) const;
143 ChunkBlock * getFallbackChunkBlock(void) const;
145 bool &editSubOverride (void);
146 bool getSubOverride (void) const;
148 /*! \} */
149 /*---------------------------------------------------------------------*/
150 /*! \name Field Set */
151 /*! \{ */
153 void setFallbackChunkBlock(ChunkBlock * const value);
154 void setSubOverride (const bool value);
156 /*! \} */
157 /*---------------------------------------------------------------------*/
158 /*! \name Ptr Field Set */
159 /*! \{ */
161 /*! \} */
162 /*---------------------------------------------------------------------*/
163 /*! \name Ptr MField Set */
164 /*! \{ */
166 /*! \} */
167 /*---------------------------------------------------------------------*/
168 /*! \name Binary Access */
169 /*! \{ */
171 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
172 virtual void copyToBin (BinaryDataHandler &pMem,
173 ConstFieldMaskArg whichField);
174 virtual void copyFromBin(BinaryDataHandler &pMem,
175 ConstFieldMaskArg whichField);
178 /*! \} */
179 /*---------------------------------------------------------------------*/
180 /*! \name Construction */
181 /*! \{ */
183 static ChunkOverrideGroupTransitPtr create (void);
184 static ChunkOverrideGroup *createEmpty (void);
186 static ChunkOverrideGroupTransitPtr createLocal (
187 BitVector bFlags = FCLocal::All);
189 static ChunkOverrideGroup *createEmptyLocal(
190 BitVector bFlags = FCLocal::All);
192 static ChunkOverrideGroupTransitPtr createDependent (BitVector bFlags);
194 /*! \} */
195 /*---------------------------------------------------------------------*/
196 /*! \name Copy */
197 /*! \{ */
199 virtual FieldContainerTransitPtr shallowCopy (void) const;
200 virtual FieldContainerTransitPtr shallowCopyLocal(
201 BitVector bFlags = FCLocal::All) const;
202 virtual FieldContainerTransitPtr shallowCopyDependent(
203 BitVector bFlags) const;
205 /*! \} */
206 /*========================= PROTECTED ===============================*/
208 protected:
210 static TypeObject _type;
212 static void classDescInserter(TypeObject &oType);
213 static const Char8 *getClassname (void );
215 /*---------------------------------------------------------------------*/
216 /*! \name Fields */
217 /*! \{ */
219 SFUnrecChunkBlockPtr _sfFallbackChunkBlock;
220 SFBool _sfSubOverride;
222 /*! \} */
223 /*---------------------------------------------------------------------*/
224 /*! \name Constructors */
225 /*! \{ */
227 ChunkOverrideGroupBase(void);
228 ChunkOverrideGroupBase(const ChunkOverrideGroupBase &source);
230 /*! \} */
231 /*---------------------------------------------------------------------*/
232 /*! \name Destructors */
233 /*! \{ */
235 virtual ~ChunkOverrideGroupBase(void);
237 /*! \} */
238 /*---------------------------------------------------------------------*/
239 /*! \name onCreate */
240 /*! \{ */
242 void onCreate(const ChunkOverrideGroup *source = NULL);
244 /*! \} */
245 /*---------------------------------------------------------------------*/
246 /*! \name Generic Field Access */
247 /*! \{ */
249 GetFieldHandlePtr getHandleFallbackChunkBlock (void) const;
250 EditFieldHandlePtr editHandleFallbackChunkBlock(void);
251 GetFieldHandlePtr getHandleSubOverride (void) const;
252 EditFieldHandlePtr editHandleSubOverride (void);
254 /*! \} */
255 /*---------------------------------------------------------------------*/
256 /*! \name Sync */
257 /*! \{ */
259 #ifdef OSG_MT_CPTR_ASPECT
260 virtual void execSyncV( FieldContainer &oFrom,
261 ConstFieldMaskArg whichField,
262 AspectOffsetStore &oOffsets,
263 ConstFieldMaskArg syncMode ,
264 const UInt32 uiSyncInfo);
266 void execSync ( ChunkOverrideGroupBase *pFrom,
267 ConstFieldMaskArg whichField,
268 AspectOffsetStore &oOffsets,
269 ConstFieldMaskArg syncMode ,
270 const UInt32 uiSyncInfo);
271 #endif
273 /*! \} */
274 /*---------------------------------------------------------------------*/
275 /*! \name Edit */
276 /*! \{ */
278 /*! \} */
279 /*---------------------------------------------------------------------*/
280 /*! \name Aspect Create */
281 /*! \{ */
283 #ifdef OSG_MT_CPTR_ASPECT
284 virtual FieldContainer *createAspectCopy(
285 const FieldContainer *pRefAspect) const;
286 #endif
288 /*! \} */
289 /*---------------------------------------------------------------------*/
290 /*! \name Edit */
291 /*! \{ */
292 /*! \} */
293 /*---------------------------------------------------------------------*/
294 /*! \name Sync */
295 /*! \{ */
297 virtual void resolveLinks(void);
299 /*! \} */
300 /*========================== PRIVATE ================================*/
302 private:
303 /*---------------------------------------------------------------------*/
305 // prohibit default functions (move to 'public' if you need one)
306 void operator =(const ChunkOverrideGroupBase &source);
309 typedef ChunkOverrideGroupBase *ChunkOverrideGroupBaseP;
311 typedef CoredNodeRefPtr <ChunkOverrideGroup> ChunkOverrideGroupNodeRefPtr;
312 typedef CoredNodeMTRefPtr<ChunkOverrideGroup> ChunkOverrideGroupNodeMTRefPtr;
314 OSG_END_NAMESPACE
316 #endif /* _OSGCHUNKOVERRIDEGROUPBASE_H_ */