fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / SystemLib / OSGFCDSParTestFCBase.h
blob3cf6c74b5a59c8c720f39e10eeba5fabf8759777
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 FCDSParTestFC
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
54 #ifndef _OSGFCDSPARTESTFCBASE_H_
55 #define _OSGFCDSPARTESTFCBASE_H_
56 #ifdef __sgi
57 #pragma once
58 #endif
61 #include "OSGConfig.h"
62 #include "OSGSystemDef.h"
64 //#include "OSGBaseTypes.h"
66 #include "OSGAttachmentContainer.h" // Parent
68 #include "OSGFieldContainerFields.h" // Parent type
70 #include "OSGFCDSParTestFCFields.h"
72 OSG_BEGIN_NAMESPACE
75 class FCDSParTestFC;
77 //! \brief FCDSParTestFC Base Class.
79 class OSG_SYSTEM_DLLMAPPING FCDSParTestFCBase : public AttachmentContainer
81 public:
83 typedef AttachmentContainer Inherited;
84 typedef AttachmentContainer ParentContainer;
86 typedef Inherited::TypeObject TypeObject;
87 typedef TypeObject::InitPhase InitPhase;
89 OSG_GEN_INTERNALPTR(FCDSParTestFC);
91 /*========================== PUBLIC =================================*/
93 public:
95 enum
97 ParentFieldId = Inherited::NextFieldId,
98 NextFieldId = ParentFieldId + 1
101 static const OSG::BitVector ParentFieldMask =
102 (TypeTraits<BitVector>::One << ParentFieldId);
103 static const OSG::BitVector NextFieldMask =
104 (TypeTraits<BitVector>::One << NextFieldId);
106 typedef SFParentFieldContainerPtr SFParentType;
108 /*---------------------------------------------------------------------*/
109 /*! \name Class Get */
110 /*! \{ */
112 static FieldContainerType &getClassType (void);
113 static UInt32 getClassTypeId (void);
114 static UInt16 getClassGroupId(void);
116 /*! \} */
117 /*---------------------------------------------------------------------*/
118 /*! \name FieldContainer Get */
119 /*! \{ */
121 virtual FieldContainerType &getType (void);
122 virtual const FieldContainerType &getType (void) const;
124 virtual UInt32 getContainerSize(void) const;
126 /*! \} */
127 /*---------------------------------------------------------------------*/
128 /*! \name Binary Access */
129 /*! \{ */
131 virtual SizeT getBinSize (ConstFieldMaskArg whichField);
132 virtual void copyToBin (BinaryDataHandler &pMem,
133 ConstFieldMaskArg whichField);
134 virtual void copyFromBin(BinaryDataHandler &pMem,
135 ConstFieldMaskArg whichField);
138 /*! \} */
139 /*---------------------------------------------------------------------*/
140 /*! \name Construction */
141 /*! \{ */
143 static FCDSParTestFCTransitPtr create (void);
144 static FCDSParTestFC *createEmpty (void);
146 static FCDSParTestFCTransitPtr createLocal (
147 BitVector bFlags = FCLocal::All);
149 static FCDSParTestFC *createEmptyLocal(
150 BitVector bFlags = FCLocal::All);
152 static FCDSParTestFCTransitPtr createDependent (BitVector bFlags);
154 /*! \} */
155 /*---------------------------------------------------------------------*/
156 /*! \name Copy */
157 /*! \{ */
159 virtual FieldContainerTransitPtr shallowCopy (void) const;
160 virtual FieldContainerTransitPtr shallowCopyLocal(
161 BitVector bFlags = FCLocal::All) const;
162 virtual FieldContainerTransitPtr shallowCopyDependent(
163 BitVector bFlags) const;
165 /*! \} */
166 /*========================= PROTECTED ===============================*/
168 protected:
170 static TypeObject _type;
172 static void classDescInserter(TypeObject &oType);
173 static const Char8 *getClassname (void );
175 /*---------------------------------------------------------------------*/
176 /*! \name Fields */
177 /*! \{ */
179 SFParentFieldContainerPtr _sfParent;
181 /*! \} */
182 /*---------------------------------------------------------------------*/
183 /*! \name Constructors */
184 /*! \{ */
186 FCDSParTestFCBase(void);
187 FCDSParTestFCBase(const FCDSParTestFCBase &source);
189 /*! \} */
190 /*---------------------------------------------------------------------*/
191 /*! \name Destructors */
192 /*! \{ */
194 virtual ~FCDSParTestFCBase(void);
196 /*! \} */
197 /*---------------------------------------------------------------------*/
198 /*! \name onCreate */
199 /*! \{ */
202 /*! \} */
203 /*---------------------------------------------------------------------*/
204 /*! \name Parent linking */
205 /*! \{ */
207 virtual bool linkParent (FieldContainer * const pParent,
208 UInt16 const childFieldId,
209 UInt16 const parentFieldId);
210 virtual bool unlinkParent(FieldContainer * const pParent,
211 UInt16 const parentFieldId);
213 /*! \} */
214 /*---------------------------------------------------------------------*/
215 /*! \name Generic Field Access */
216 /*! \{ */
218 GetFieldHandlePtr getHandleParent (void) const;
219 EditFieldHandlePtr editHandleParent (void);
221 /*! \} */
222 /*---------------------------------------------------------------------*/
223 /*! \name Sync */
224 /*! \{ */
226 #ifdef OSG_MT_CPTR_ASPECT
227 virtual void execSyncV( FieldContainer &oFrom,
228 ConstFieldMaskArg whichField,
229 AspectOffsetStore &oOffsets,
230 ConstFieldMaskArg syncMode ,
231 const UInt32 uiSyncInfo);
233 void execSync ( FCDSParTestFCBase *pFrom,
234 ConstFieldMaskArg whichField,
235 AspectOffsetStore &oOffsets,
236 ConstFieldMaskArg syncMode ,
237 const UInt32 uiSyncInfo);
238 #endif
240 /*! \} */
241 /*---------------------------------------------------------------------*/
242 /*! \name Edit */
243 /*! \{ */
245 /*! \} */
246 /*---------------------------------------------------------------------*/
247 /*! \name Aspect Create */
248 /*! \{ */
250 #ifdef OSG_MT_CPTR_ASPECT
251 virtual FieldContainer *createAspectCopy(
252 const FieldContainer *pRefAspect) const;
253 #endif
255 /*! \} */
256 /*---------------------------------------------------------------------*/
257 /*! \name Edit */
258 /*! \{ */
259 /*! \} */
260 /*---------------------------------------------------------------------*/
261 /*! \name Sync */
262 /*! \{ */
264 virtual void resolveLinks(void);
266 /*! \} */
267 /*========================== PRIVATE ================================*/
269 private:
270 /*---------------------------------------------------------------------*/
272 // prohibit default functions (move to 'public' if you need one)
273 void operator =(const FCDSParTestFCBase &source);
276 typedef FCDSParTestFCBase *FCDSParTestFCBaseP;
278 OSG_END_NAMESPACE
280 #endif /* _OSGFCDSPARTESTFCBASE_H_ */