1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 _OSGCSMDRAWERFIELDS_H_
52 #define _OSGCSMDRAWERFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGContribCSMDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
70 OSG_GEN_CONTAINERPTR(CSMDrawer
);
71 /*! \ingroup GrpContribCSMFieldTraits
72 \ingroup GrpLibOSGContribCSM
75 struct FieldTraits
<CSMDrawer
*, nsOSG
> :
76 public FieldTraitsFCPtrBase
<CSMDrawer
*, nsOSG
>
80 static PointerType _type
;
84 typedef FieldTraits
<CSMDrawer
*, nsOSG
> Self
;
86 enum { Convertible
= NotConvertible
};
88 static OSG_CONTRIBCSM_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
<CSMDrawer
*, nsOSG
>::getSName
<RecordedRefCountPolicy
>(void)
101 return "SFRecCSMDrawerPtr";
105 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getSName
<UnrecordedRefCountPolicy
>(void)
107 return "SFUnrecCSMDrawerPtr";
111 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getSName
<WeakRefCountPolicy
>(void)
113 return "SFWeakCSMDrawerPtr";
117 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getSName
<NoRefCountPolicy
>(void)
119 return "SFUnrefdCSMDrawerPtr";
123 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getMName
<RecordedRefCountPolicy
>(void)
125 return "MFRecCSMDrawerPtr";
129 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getMName
<UnrecordedRefCountPolicy
>(void)
131 return "MFUnrecCSMDrawerPtr";
135 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getMName
<WeakRefCountPolicy
>(void)
137 return "MFWeakCSMDrawerPtr";
141 const Char8
*FieldTraits
<CSMDrawer
*, nsOSG
>::getMName
<NoRefCountPolicy
>(void)
143 return "MFUnrefdCSMDrawerPtr";
147 /*! \ingroup GrpContribCSMFieldTraits
150 struct FieldTraits
<CSMDrawer
*, nsOSG
+ 1> :
151 public FieldTraitsFCPtrBase
<CSMDrawer
*, nsOSG
+ 1>
155 static DataType _type
;
159 static const bool bIsPointerField
= true;
161 typedef FieldTraits
<CSMDrawer
*, nsOSG
+ 1> Self
;
164 enum { Convertible
= Self::NotConvertible
};
166 static OSG_CONTRIBCSM_DLLMAPPING
167 DataType
&getType (void);
169 static const Char8
*getSName(void)
171 return "SFParentCSMDrawerPtr";
174 static const Char8
*getMName(void)
176 return "MFParentCSMDrawerPtr";
180 #ifndef DOXYGEN_SHOULD_SKIP_THIS
181 /*! \ingroup GrpContribCSMFieldSFields */
182 typedef PointerSField
<CSMDrawer
*,
183 RecordedRefCountPolicy
, nsOSG
> SFRecCSMDrawerPtr
;
184 /*! \ingroup GrpContribCSMFieldSFields */
185 typedef PointerSField
<CSMDrawer
*,
186 UnrecordedRefCountPolicy
, nsOSG
> SFUnrecCSMDrawerPtr
;
187 /*! \ingroup GrpContribCSMFieldSFields */
188 typedef PointerSField
<CSMDrawer
*,
189 WeakRefCountPolicy
, nsOSG
> SFWeakCSMDrawerPtr
;
190 /*! \ingroup GrpContribCSMFieldSFields */
191 typedef PointerSField
<CSMDrawer
*,
192 NoRefCountPolicy
, nsOSG
> SFUncountedCSMDrawerPtr
;
195 /*! \ingroup GrpContribCSMFieldMFields */
196 typedef PointerMField
<CSMDrawer
*,
197 RecordedRefCountPolicy
, nsOSG
> MFRecCSMDrawerPtr
;
198 /*! \ingroup GrpContribCSMFieldMFields */
199 typedef PointerMField
<CSMDrawer
*,
200 UnrecordedRefCountPolicy
, nsOSG
> MFUnrecCSMDrawerPtr
;
201 /*! \ingroup GrpContribCSMFieldMFields */
202 typedef PointerMField
<CSMDrawer
*,
203 WeakRefCountPolicy
, nsOSG
> MFWeakCSMDrawerPtr
;
204 /*! \ingroup GrpContribCSMFieldMFields */
205 typedef PointerMField
<CSMDrawer
*,
206 NoRefCountPolicy
, nsOSG
> MFUncountedCSMDrawerPtr
;
210 /*! \ingroup GrpContribCSMFieldSFields */
211 typedef ParentPointerSField
<
214 nsOSG
+ 1 > SFParentCSMDrawerPtr
;
217 #else // these are the doxygen hacks
219 /*! \ingroup GrpContribCSMFieldSFields \ingroup GrpLibOSGContribCSM */
220 struct SFRecCSMDrawerPtr
:
221 public PointerSField
<CSMDrawer
*,
222 RecordedRefCountPolicy
> {};
223 /*! \ingroup GrpContribCSMFieldSFields \ingroup GrpLibOSGContribCSM */
224 struct SFUnrecCSMDrawerPtr
:
225 public PointerSField
<CSMDrawer
*,
226 UnrecordedRefCountPolicy
> {};
227 /*! \ingroup GrpContribCSMFieldSFields \ingroup GrpLibOSGContribCSM */
228 struct SFWeakCSMDrawerPtr
:
229 public PointerSField
<CSMDrawer
*,
230 WeakRefCountPolicy
> {};
231 /*! \ingroup GrpContribCSMFieldSFields \ingroup GrpLibOSGContribCSM */
232 struct SFUncountedCSMDrawerPtr
:
233 public PointerSField
<CSMDrawer
*,
234 NoRefCountPolicy
> {};
237 /*! \ingroup GrpContribCSMFieldMFields \ingroup GrpLibOSGContribCSM */
238 struct MFRecCSMDrawerPtr
:
239 public PointerMField
<CSMDrawer
*,
240 RecordedRefCountPolicy
> {};
241 /*! \ingroup GrpContribCSMFieldMFields \ingroup GrpLibOSGContribCSM */
242 struct MFUnrecCSMDrawerPtr
:
243 public PointerMField
<CSMDrawer
*,
244 UnrecordedRefCountPolicy
> {};
245 /*! \ingroup GrpContribCSMFieldMFields \ingroup GrpLibOSGContribCSM */
246 struct MFWeakCSMDrawerPtr
:
247 public PointerMField
<CSMDrawer
*,
248 WeakRefCountPolicy
> {};
249 /*! \ingroup GrpContribCSMFieldMFields \ingroup GrpLibOSGContribCSM */
250 struct MFUncountedCSMDrawerPtr
:
251 public PointerMField
<CSMDrawer
*,
252 NoRefCountPolicy
> {};
256 /*! \ingroup GrpContribCSMFieldSFields \ingroup GrpLibOSGContribCSM */
257 struct SFParentCSMDrawerPtr
:
258 public ParentPointerSField
<
263 #endif // these are the doxygen hacks
267 #endif /* _OSGCSMDRAWERFIELDS_H_ */