fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / SystemLib / OSGFCDTestFCBase.h
blobd3968feb800ac47357023ee63541826e21f41223
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2006 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de *
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 FCDTestFC
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGFCDTESTFCBASE_H_
55 #define _OSGFCDTESTFCBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
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"
72 OSG_BEGIN_NAMESPACE
75 class FCDTestFC;
77 //! \brief FCDTestFC Base Class.
79 class OSG_SYSTEM_DLLMAPPING FCDTestFCBase : public NodeCore
81 public:
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 =================================*/
93 public:
95 enum
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 */
130 /*! \{ */
132 static FieldContainerType &getClassType (void);
133 static UInt32 getClassTypeId (void);
134 static UInt16 getClassGroupId(void);
136 /*! \} */
137 /*---------------------------------------------------------------------*/
138 /*! \name FieldContainer Get */
139 /*! \{ */
141 virtual FieldContainerType &getType (void);
142 virtual const FieldContainerType &getType (void) const;
144 virtual UInt32 getContainerSize(void) const;
146 /*! \} */
147 /*---------------------------------------------------------------------*/
148 /*! \name Field Get */
149 /*! \{ */
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;
165 /*! \} */
166 /*---------------------------------------------------------------------*/
167 /*! \name Field Set */
168 /*! \{ */
170 void setFieldSFPub (const UInt32 value);
172 /*! \} */
173 /*---------------------------------------------------------------------*/
174 /*! \name Ptr MField Set */
175 /*! \{ */
177 /*! \} */
178 /*---------------------------------------------------------------------*/
179 /*! \name Binary Access */
180 /*! \{ */
182 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
183 virtual void copyToBin (BinaryDataHandler &pMem,
184 ConstFieldMaskArg whichField);
185 virtual void copyFromBin(BinaryDataHandler &pMem,
186 ConstFieldMaskArg whichField);
189 /*! \} */
190 /*---------------------------------------------------------------------*/
191 /*! \name Construction */
192 /*! \{ */
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);
205 /*! \} */
206 /*---------------------------------------------------------------------*/
207 /*! \name Copy */
208 /*! \{ */
210 virtual FieldContainerTransitPtr shallowCopy (void) const;
211 virtual FieldContainerTransitPtr shallowCopyLocal(
212 BitVector bFlags = FCLocal::All) const;
213 virtual FieldContainerTransitPtr shallowCopyDependent(
214 BitVector bFlags) const;
216 /*! \} */
217 /*========================= PROTECTED ===============================*/
219 protected:
221 static TypeObject _type;
223 static void classDescInserter(TypeObject &oType);
224 static const Char8 *getClassname (void );
226 /*---------------------------------------------------------------------*/
227 /*! \name Fields */
228 /*! \{ */
230 SFUInt32 _sfFieldSFPub;
231 SFUInt32 _sfFieldSFPro;
232 SFUInt32 _sfFieldSFNo;
233 MFUInt32 _mfFieldMFPub;
234 MFUInt32 _mfFieldMFPro;
235 MFUInt32 _mfFieldMFNo;
237 /*! \} */
238 /*---------------------------------------------------------------------*/
239 /*! \name Constructors */
240 /*! \{ */
242 FCDTestFCBase(void);
243 FCDTestFCBase(const FCDTestFCBase &source);
245 /*! \} */
246 /*---------------------------------------------------------------------*/
247 /*! \name Destructors */
248 /*! \{ */
250 virtual ~FCDTestFCBase(void);
252 /*! \} */
253 /*---------------------------------------------------------------------*/
254 /*! \name onCreate */
255 /*! \{ */
258 /*! \} */
259 /*---------------------------------------------------------------------*/
260 /*! \name Generic Field Access */
261 /*! \{ */
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);
276 /*! \} */
277 /*---------------------------------------------------------------------*/
278 /*! \name Field Get */
279 /*! \{ */
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;
295 /*! \} */
296 /*---------------------------------------------------------------------*/
297 /*! \name Field Set */
298 /*! \{ */
300 void setFieldSFPro (const UInt32 value);
302 /*! \} */
303 /*---------------------------------------------------------------------*/
304 /*! \name Ptr MField Set */
305 /*! \{ */
307 /*! \} */
308 /*---------------------------------------------------------------------*/
309 /*! \name Sync */
310 /*! \{ */
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);
324 #endif
326 /*! \} */
327 /*---------------------------------------------------------------------*/
328 /*! \name Edit */
329 /*! \{ */
331 /*! \} */
332 /*---------------------------------------------------------------------*/
333 /*! \name Aspect Create */
334 /*! \{ */
336 #ifdef OSG_MT_CPTR_ASPECT
337 virtual FieldContainer *createAspectCopy(
338 const FieldContainer *pRefAspect) const;
339 #endif
341 /*! \} */
342 /*---------------------------------------------------------------------*/
343 /*! \name Edit */
344 /*! \{ */
345 /*! \} */
346 /*---------------------------------------------------------------------*/
347 /*! \name Sync */
348 /*! \{ */
350 virtual void resolveLinks(void);
352 /*! \} */
353 /*========================== PRIVATE ================================*/
355 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;
367 OSG_END_NAMESPACE
369 #endif /* _OSGFCDTESTFCBASE_H_ */