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 _OSGGLUTWINDOWFIELDS_H_
52 #define _OSGGLUTWINDOWFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGWindowGLUTDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
70 OSG_GEN_CONTAINERPTR(GLUTWindow
);
71 /*! \ingroup GrpWindowGLUTFieldTraits
72 \ingroup GrpLibOSGWindowGLUT
75 struct FieldTraits
<GLUTWindow
*, nsOSG
> :
76 public FieldTraitsFCPtrBase
<GLUTWindow
*, nsOSG
>
80 static PointerType _type
;
84 typedef FieldTraits
<GLUTWindow
*, nsOSG
> Self
;
86 enum { Convertible
= NotConvertible
};
88 static OSG_WINDOWGLUT_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
<GLUTWindow
*, nsOSG
>::getSName
<RecordedRefCountPolicy
>(void)
101 return "SFRecGLUTWindowPtr";
105 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getSName
<UnrecordedRefCountPolicy
>(void)
107 return "SFUnrecGLUTWindowPtr";
111 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getSName
<WeakRefCountPolicy
>(void)
113 return "SFWeakGLUTWindowPtr";
117 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getSName
<NoRefCountPolicy
>(void)
119 return "SFUnrefdGLUTWindowPtr";
123 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getMName
<RecordedRefCountPolicy
>(void)
125 return "MFRecGLUTWindowPtr";
129 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getMName
<UnrecordedRefCountPolicy
>(void)
131 return "MFUnrecGLUTWindowPtr";
135 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getMName
<WeakRefCountPolicy
>(void)
137 return "MFWeakGLUTWindowPtr";
141 const Char8
*FieldTraits
<GLUTWindow
*, nsOSG
>::getMName
<NoRefCountPolicy
>(void)
143 return "MFUnrefdGLUTWindowPtr";
147 #ifndef DOXYGEN_SHOULD_SKIP_THIS
148 /*! \ingroup GrpWindowGLUTFieldSFields */
149 typedef PointerSField
<GLUTWindow
*,
150 RecordedRefCountPolicy
, nsOSG
> SFRecGLUTWindowPtr
;
151 /*! \ingroup GrpWindowGLUTFieldSFields */
152 typedef PointerSField
<GLUTWindow
*,
153 UnrecordedRefCountPolicy
, nsOSG
> SFUnrecGLUTWindowPtr
;
154 /*! \ingroup GrpWindowGLUTFieldSFields */
155 typedef PointerSField
<GLUTWindow
*,
156 WeakRefCountPolicy
, nsOSG
> SFWeakGLUTWindowPtr
;
157 /*! \ingroup GrpWindowGLUTFieldSFields */
158 typedef PointerSField
<GLUTWindow
*,
159 NoRefCountPolicy
, nsOSG
> SFUncountedGLUTWindowPtr
;
162 /*! \ingroup GrpWindowGLUTFieldMFields */
163 typedef PointerMField
<GLUTWindow
*,
164 RecordedRefCountPolicy
, nsOSG
> MFRecGLUTWindowPtr
;
165 /*! \ingroup GrpWindowGLUTFieldMFields */
166 typedef PointerMField
<GLUTWindow
*,
167 UnrecordedRefCountPolicy
, nsOSG
> MFUnrecGLUTWindowPtr
;
168 /*! \ingroup GrpWindowGLUTFieldMFields */
169 typedef PointerMField
<GLUTWindow
*,
170 WeakRefCountPolicy
, nsOSG
> MFWeakGLUTWindowPtr
;
171 /*! \ingroup GrpWindowGLUTFieldMFields */
172 typedef PointerMField
<GLUTWindow
*,
173 NoRefCountPolicy
, nsOSG
> MFUncountedGLUTWindowPtr
;
178 #else // these are the doxygen hacks
180 /*! \ingroup GrpWindowGLUTFieldSFields \ingroup GrpLibOSGWindowGLUT */
181 struct SFRecGLUTWindowPtr
:
182 public PointerSField
<GLUTWindow
*,
183 RecordedRefCountPolicy
> {};
184 /*! \ingroup GrpWindowGLUTFieldSFields \ingroup GrpLibOSGWindowGLUT */
185 struct SFUnrecGLUTWindowPtr
:
186 public PointerSField
<GLUTWindow
*,
187 UnrecordedRefCountPolicy
> {};
188 /*! \ingroup GrpWindowGLUTFieldSFields \ingroup GrpLibOSGWindowGLUT */
189 struct SFWeakGLUTWindowPtr
:
190 public PointerSField
<GLUTWindow
*,
191 WeakRefCountPolicy
> {};
192 /*! \ingroup GrpWindowGLUTFieldSFields \ingroup GrpLibOSGWindowGLUT */
193 struct SFUncountedGLUTWindowPtr
:
194 public PointerSField
<GLUTWindow
*,
195 NoRefCountPolicy
> {};
198 /*! \ingroup GrpWindowGLUTFieldMFields \ingroup GrpLibOSGWindowGLUT */
199 struct MFRecGLUTWindowPtr
:
200 public PointerMField
<GLUTWindow
*,
201 RecordedRefCountPolicy
> {};
202 /*! \ingroup GrpWindowGLUTFieldMFields \ingroup GrpLibOSGWindowGLUT */
203 struct MFUnrecGLUTWindowPtr
:
204 public PointerMField
<GLUTWindow
*,
205 UnrecordedRefCountPolicy
> {};
206 /*! \ingroup GrpWindowGLUTFieldMFields \ingroup GrpLibOSGWindowGLUT */
207 struct MFWeakGLUTWindowPtr
:
208 public PointerMField
<GLUTWindow
*,
209 WeakRefCountPolicy
> {};
210 /*! \ingroup GrpWindowGLUTFieldMFields \ingroup GrpLibOSGWindowGLUT */
211 struct MFUncountedGLUTWindowPtr
:
212 public PointerMField
<GLUTWindow
*,
213 NoRefCountPolicy
> {};
217 #endif // these are the doxygen hacks
221 #endif /* _OSGGLUTWINDOWFIELDS_H_ */