changed: gcc8 base update
[opensg.git] / Source / Contrib / ComplexSceneManager / OSGCSMDrawerFields.h
blob87b0a3863ff9787bc3d96626b35d74a76fc2d2cf
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 _OSGCSMDRAWERFIELDS_H_
52 #define _OSGCSMDRAWERFIELDS_H_
53 #ifdef __sgi
54 #pragma once
55 #endif
57 #include "OSGConfig.h"
58 #include "OSGContribCSMDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
65 OSG_BEGIN_NAMESPACE
68 class CSMDrawer;
70 OSG_GEN_CONTAINERPTR(CSMDrawer);
71 /*! \ingroup GrpContribCSMFieldTraits
72 \ingroup GrpLibOSGContribCSM
74 template <>
75 struct FieldTraits<CSMDrawer *, nsOSG> :
76 public FieldTraitsFCPtrBase<CSMDrawer *, nsOSG>
78 private:
80 static PointerType _type;
82 public:
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);
98 template<> inline
99 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getSName<RecordedRefCountPolicy>(void)
101 return "SFRecCSMDrawerPtr";
104 template<> inline
105 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getSName<UnrecordedRefCountPolicy>(void)
107 return "SFUnrecCSMDrawerPtr";
110 template<> inline
111 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getSName<WeakRefCountPolicy>(void)
113 return "SFWeakCSMDrawerPtr";
116 template<> inline
117 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getSName<NoRefCountPolicy>(void)
119 return "SFUnrefdCSMDrawerPtr";
122 template<> inline
123 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getMName<RecordedRefCountPolicy>(void)
125 return "MFRecCSMDrawerPtr";
128 template<> inline
129 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getMName<UnrecordedRefCountPolicy>(void)
131 return "MFUnrecCSMDrawerPtr";
134 template<> inline
135 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getMName<WeakRefCountPolicy>(void)
137 return "MFWeakCSMDrawerPtr";
140 template<> inline
141 const Char8 *FieldTraits<CSMDrawer *, nsOSG>::getMName<NoRefCountPolicy>(void)
143 return "MFUnrefdCSMDrawerPtr";
147 /*! \ingroup GrpContribCSMFieldTraits
149 template <>
150 struct FieldTraits<CSMDrawer *, nsOSG + 1> :
151 public FieldTraitsFCPtrBase<CSMDrawer *, nsOSG + 1>
153 private:
155 static DataType _type;
157 public:
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<
212 CSMDrawer *,
213 NoRefCountPolicy,
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<
259 CSMDrawer *,
260 NoRefCountPolicy,
261 nsOSG + 1 > {};
263 #endif // these are the doxygen hacks
265 OSG_END_NAMESPACE
267 #endif /* _OSGCSMDRAWERFIELDS_H_ */