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 *****************************************************************************
48 \*****************************************************************************/
51 #ifndef _OSGGLOBALSATTACHMENTFIELDS_H_
52 #define _OSGGLOBALSATTACHMENTFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGBaseDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
68 class GlobalsAttachment
;
70 OSG_GEN_CONTAINERPTR(GlobalsAttachment
);
71 /*! \ingroup GrpBaseFieldContainerFieldTraits
72 \ingroup GrpLibOSGBase
75 struct FieldTraits
<GlobalsAttachment
*, nsOSG
> :
76 public FieldTraitsFCPtrBase
<GlobalsAttachment
*, nsOSG
>
80 static PointerType _type
;
84 typedef FieldTraits
<GlobalsAttachment
*, nsOSG
> Self
;
86 enum { Convertible
= NotConvertible
};
88 static OSG_BASE_DLLMAPPING DataType
&getType(void);
90 template<typename RefCountPolicy
> inline
91 static const Char8
*getSName (void);
93 template<typename RefCountPolicy
> inline
94 static const Char8
*getMName (void);
99 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getSName
<RecordedRefCountPolicy
>(void)
101 return "SFRecGlobalsAttachmentPtr";
105 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getSName
<UnrecordedRefCountPolicy
>(void)
107 return "SFUnrecGlobalsAttachmentPtr";
111 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getSName
<WeakRefCountPolicy
>(void)
113 return "SFWeakGlobalsAttachmentPtr";
117 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getSName
<NoRefCountPolicy
>(void)
119 return "SFUnrefdGlobalsAttachmentPtr";
123 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getMName
<RecordedRefCountPolicy
>(void)
125 return "MFRecGlobalsAttachmentPtr";
129 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getMName
<UnrecordedRefCountPolicy
>(void)
131 return "MFUnrecGlobalsAttachmentPtr";
135 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getMName
<WeakRefCountPolicy
>(void)
137 return "MFWeakGlobalsAttachmentPtr";
141 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
>::getMName
<NoRefCountPolicy
>(void)
143 return "MFUnrefdGlobalsAttachmentPtr";
147 /*! \ingroup GrpBaseFieldContainerFieldTraits
150 struct FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1> :
151 public FieldTraitsFCPtrBase
<GlobalsAttachment
*, nsOSG
+ 1>
156 typedef FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1> Self
;
158 enum { Convertible
= NotConvertible
};
160 static OSG_BASE_DLLMAPPING DataType
&getType(void);
162 template<typename RefCountPolicy
> inline
163 static const Char8
*getSName (void);
165 template<typename RefCountPolicy
> inline
166 static const Char8
*getMName (void);
170 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getSName
<RecordedRefCountPolicy
>(void)
172 return "SFRecChildGlobalsAttachmentPtr";
176 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getSName
<UnrecordedRefCountPolicy
>(void)
178 return "SFUnrecChildGlobalsAttachmentPtr";
182 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getSName
<WeakRefCountPolicy
>(void)
184 return "SFWeakChildGlobalsAttachmentPtr";
188 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getSName
<NoRefCountPolicy
>(void)
190 return "SFUnrefdChildGlobalsAttachmentPtr";
194 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getMName
<RecordedRefCountPolicy
>(void)
196 return "MFRecChildGlobalsAttachmentPtr";
200 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getMName
<UnrecordedRefCountPolicy
>(void)
202 return "MFUnrecChildGlobalsAttachmentPtr";
206 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getMName
<WeakRefCountPolicy
>(void)
208 return "MFWeakChildGlobalsAttachmentPtr";
212 const Char8
*FieldTraits
<GlobalsAttachment
*, nsOSG
+ 1>::getMName
<NoRefCountPolicy
>(void)
214 return "MFUnrefdChildGlobalsAttachmentPtr";
218 /*! \ingroup GrpBaseFieldContainerFieldTraits
221 struct FieldTraits
<GlobalsAttachment
*, nsOSG
+ 2> :
222 public FieldTraitsFCPtrBase
<GlobalsAttachment
*, nsOSG
+ 2>
226 static DataType _type
;
230 static const bool bIsPointerField
= true;
232 typedef FieldTraits
<GlobalsAttachment
*, nsOSG
+ 2> Self
;
235 enum { Convertible
= Self::NotConvertible
};
237 static OSG_BASE_DLLMAPPING
238 DataType
&getType (void);
240 static const Char8
*getSName(void)
242 return "SFParentGlobalsAttachmentPtr";
245 static const Char8
*getMName(void)
247 return "MFParentGlobalsAttachmentPtr";
251 #ifndef DOXYGEN_SHOULD_SKIP_THIS
252 /*! \ingroup GrpBaseFieldContainerFieldSFields */
253 typedef PointerSField
<GlobalsAttachment
*,
254 RecordedRefCountPolicy
, nsOSG
> SFRecGlobalsAttachmentPtr
;
255 /*! \ingroup GrpBaseFieldContainerFieldSFields */
256 typedef PointerSField
<GlobalsAttachment
*,
257 UnrecordedRefCountPolicy
, nsOSG
> SFUnrecGlobalsAttachmentPtr
;
258 /*! \ingroup GrpBaseFieldContainerFieldSFields */
259 typedef PointerSField
<GlobalsAttachment
*,
260 WeakRefCountPolicy
, nsOSG
> SFWeakGlobalsAttachmentPtr
;
261 /*! \ingroup GrpBaseFieldContainerFieldSFields */
262 typedef PointerSField
<GlobalsAttachment
*,
263 NoRefCountPolicy
, nsOSG
> SFUncountedGlobalsAttachmentPtr
;
266 /*! \ingroup GrpBaseFieldContainerFieldMFields */
267 typedef PointerMField
<GlobalsAttachment
*,
268 RecordedRefCountPolicy
, nsOSG
> MFRecGlobalsAttachmentPtr
;
269 /*! \ingroup GrpBaseFieldContainerFieldMFields */
270 typedef PointerMField
<GlobalsAttachment
*,
271 UnrecordedRefCountPolicy
, nsOSG
> MFUnrecGlobalsAttachmentPtr
;
272 /*! \ingroup GrpBaseFieldContainerFieldMFields */
273 typedef PointerMField
<GlobalsAttachment
*,
274 WeakRefCountPolicy
, nsOSG
> MFWeakGlobalsAttachmentPtr
;
275 /*! \ingroup GrpBaseFieldContainerFieldMFields */
276 typedef PointerMField
<GlobalsAttachment
*,
277 NoRefCountPolicy
, nsOSG
> MFUncountedGlobalsAttachmentPtr
;
281 /*! \ingroup GrpBaseFieldContainerFieldSFields */
282 typedef ChildPointerSField
<
284 UnrecordedRefCountPolicy
,
285 nsOSG
+ 1 > SFUnrecChildGlobalsAttachmentPtr
;
288 /*! \ingroup GrpBaseFieldContainerFieldMFields */
289 typedef ChildPointerMField
<
291 UnrecordedRefCountPolicy
,
292 nsOSG
+ 1 > MFUnrecChildGlobalsAttachmentPtr
;
295 /*! \ingroup GrpBaseFieldContainerFieldSFields */
296 typedef ParentPointerSField
<
299 nsOSG
+ 2 > SFParentGlobalsAttachmentPtr
;
301 /*! \ingroup GrpBaseFieldContainerFieldMFields */
302 typedef ParentPointerMField
<
305 nsOSG
+ 2 > MFParentGlobalsAttachmentPtr
;
309 #else // these are the doxygen hacks
311 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
312 struct SFRecGlobalsAttachmentPtr
:
313 public PointerSField
<GlobalsAttachment
*,
314 RecordedRefCountPolicy
> {};
315 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
316 struct SFUnrecGlobalsAttachmentPtr
:
317 public PointerSField
<GlobalsAttachment
*,
318 UnrecordedRefCountPolicy
> {};
319 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
320 struct SFWeakGlobalsAttachmentPtr
:
321 public PointerSField
<GlobalsAttachment
*,
322 WeakRefCountPolicy
> {};
323 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
324 struct SFUncountedGlobalsAttachmentPtr
:
325 public PointerSField
<GlobalsAttachment
*,
326 NoRefCountPolicy
> {};
329 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
330 struct MFRecGlobalsAttachmentPtr
:
331 public PointerMField
<GlobalsAttachment
*,
332 RecordedRefCountPolicy
> {};
333 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
334 struct MFUnrecGlobalsAttachmentPtr
:
335 public PointerMField
<GlobalsAttachment
*,
336 UnrecordedRefCountPolicy
> {};
337 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
338 struct MFWeakGlobalsAttachmentPtr
:
339 public PointerMField
<GlobalsAttachment
*,
340 WeakRefCountPolicy
> {};
341 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
342 struct MFUncountedGlobalsAttachmentPtr
:
343 public PointerMField
<GlobalsAttachment
*,
344 NoRefCountPolicy
> {};
348 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
349 struct SFUnrecChildGlobalsAttachmentPtr
:
350 public ChildPointerSField
<
352 UnrecordedRefCountPolicy
,
356 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
357 struct MFUnrecChildGlobalsAttachmentPtr
:
358 public ChildPointerMField
<
360 UnrecordedRefCountPolicy
,
364 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
365 struct SFParentGlobalsAttachmentPtr
:
366 public ParentPointerSField
<
371 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
372 struct MFParentGlobalsAttachmentPtr
:
373 public ParentPointerMField
<
379 #endif // these are the doxygen hacks
383 #endif /* _OSGGLOBALSATTACHMENTFIELDS_H_ */