changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / Base / FieldContainer / Attachments / OSGGlobalsAttachmentFields.h
blobb7839dddc2220ac2726e361f685e267e329f4d8a
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 *****************************************************************************
48 \*****************************************************************************/
51 #ifndef _OSGGLOBALSATTACHMENTFIELDS_H_
52 #define _OSGGLOBALSATTACHMENTFIELDS_H_
53 #ifdef __sgi
54 #pragma once
55 #endif
57 #include "OSGConfig.h"
58 #include "OSGBaseDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
65 OSG_BEGIN_NAMESPACE
68 class GlobalsAttachment;
70 OSG_GEN_CONTAINERPTR(GlobalsAttachment);
71 /*! \ingroup GrpBaseFieldContainerFieldTraits
72 \ingroup GrpLibOSGBase
74 template <>
75 struct FieldTraits<GlobalsAttachment *, nsOSG> :
76 public FieldTraitsFCPtrBase<GlobalsAttachment *, nsOSG>
78 private:
80 static PointerType _type;
82 public:
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);
98 template<> inline
99 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getSName<RecordedRefCountPolicy>(void)
101 return "SFRecGlobalsAttachmentPtr";
104 template<> inline
105 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getSName<UnrecordedRefCountPolicy>(void)
107 return "SFUnrecGlobalsAttachmentPtr";
110 template<> inline
111 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getSName<WeakRefCountPolicy>(void)
113 return "SFWeakGlobalsAttachmentPtr";
116 template<> inline
117 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getSName<NoRefCountPolicy>(void)
119 return "SFUnrefdGlobalsAttachmentPtr";
122 template<> inline
123 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getMName<RecordedRefCountPolicy>(void)
125 return "MFRecGlobalsAttachmentPtr";
128 template<> inline
129 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getMName<UnrecordedRefCountPolicy>(void)
131 return "MFUnrecGlobalsAttachmentPtr";
134 template<> inline
135 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getMName<WeakRefCountPolicy>(void)
137 return "MFWeakGlobalsAttachmentPtr";
140 template<> inline
141 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG>::getMName<NoRefCountPolicy>(void)
143 return "MFUnrefdGlobalsAttachmentPtr";
147 /*! \ingroup GrpBaseFieldContainerFieldTraits
149 template <>
150 struct FieldTraits<GlobalsAttachment *, nsOSG + 1> :
151 public FieldTraitsFCPtrBase<GlobalsAttachment *, nsOSG + 1>
153 private:
155 public:
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);
169 template<> inline
170 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getSName<RecordedRefCountPolicy>(void)
172 return "SFRecChildGlobalsAttachmentPtr";
175 template<> inline
176 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getSName<UnrecordedRefCountPolicy>(void)
178 return "SFUnrecChildGlobalsAttachmentPtr";
181 template<> inline
182 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getSName<WeakRefCountPolicy>(void)
184 return "SFWeakChildGlobalsAttachmentPtr";
187 template<> inline
188 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getSName<NoRefCountPolicy>(void)
190 return "SFUnrefdChildGlobalsAttachmentPtr";
193 template<> inline
194 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getMName<RecordedRefCountPolicy>(void)
196 return "MFRecChildGlobalsAttachmentPtr";
199 template<> inline
200 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getMName<UnrecordedRefCountPolicy>(void)
202 return "MFUnrecChildGlobalsAttachmentPtr";
205 template<> inline
206 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getMName<WeakRefCountPolicy>(void)
208 return "MFWeakChildGlobalsAttachmentPtr";
211 template<> inline
212 const Char8 *FieldTraits<GlobalsAttachment *, nsOSG + 1>::getMName<NoRefCountPolicy>(void)
214 return "MFUnrefdChildGlobalsAttachmentPtr";
218 /*! \ingroup GrpBaseFieldContainerFieldTraits
220 template <>
221 struct FieldTraits<GlobalsAttachment *, nsOSG + 2> :
222 public FieldTraitsFCPtrBase<GlobalsAttachment *, nsOSG + 2>
224 private:
226 static DataType _type;
228 public:
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<
283 GlobalsAttachment *,
284 UnrecordedRefCountPolicy,
285 nsOSG + 1 > SFUnrecChildGlobalsAttachmentPtr;
288 /*! \ingroup GrpBaseFieldContainerFieldMFields */
289 typedef ChildPointerMField<
290 GlobalsAttachment *,
291 UnrecordedRefCountPolicy,
292 nsOSG + 1 > MFUnrecChildGlobalsAttachmentPtr;
295 /*! \ingroup GrpBaseFieldContainerFieldSFields */
296 typedef ParentPointerSField<
297 GlobalsAttachment *,
298 NoRefCountPolicy,
299 nsOSG + 2 > SFParentGlobalsAttachmentPtr;
301 /*! \ingroup GrpBaseFieldContainerFieldMFields */
302 typedef ParentPointerMField<
303 GlobalsAttachment *,
304 NoRefCountPolicy,
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<
351 GlobalsAttachment *,
352 UnrecordedRefCountPolicy,
353 nsOSG + 1 > {};
356 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
357 struct MFUnrecChildGlobalsAttachmentPtr :
358 public ChildPointerMField<
359 GlobalsAttachment *,
360 UnrecordedRefCountPolicy,
361 nsOSG + 1 > {};
364 /*! \ingroup GrpBaseFieldContainerFieldSFields \ingroup GrpLibOSGBase */
365 struct SFParentGlobalsAttachmentPtr :
366 public ParentPointerSField<
367 GlobalsAttachment *,
368 NoRefCountPolicy,
369 nsOSG + 2 > {};
371 /*! \ingroup GrpBaseFieldContainerFieldMFields \ingroup GrpLibOSGBase */
372 struct MFParentGlobalsAttachmentPtr :
373 public ParentPointerMField<
374 GlobalsAttachment *,
375 NoRefCountPolicy,
376 nsOSG + 2 > {};
379 #endif // these are the doxygen hacks
381 OSG_END_NAMESPACE
383 #endif /* _OSGGLOBALSATTACHMENTFIELDS_H_ */