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 _OSGEGLWINDOWFIELDS_H_
52 #define _OSGEGLWINDOWFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGWindowEGLDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
69 OSG_GEN_CONTAINERPTR(EGLWindow
);
71 /*! \ingroup GrpWindowEGLFieldTraits
72 \ingroup GrpLibOSGWindowEGL
75 struct FieldTraits
<EGLWindow
*> :
76 public FieldTraitsFCPtrBase
<EGLWindow
*>
80 static DataType _type
;
84 typedef FieldTraits
<EGLWindow
*> Self
;
86 enum { Convertible
= NotConvertible
};
88 static OSG_WINDOWEGL_DLLMAPPING DataType
&getType(void);
90 template<typename RefCountPolicy
> inline
91 static const Char8
*getSName (void);
93 // static const char *getSName(void) { return "SFEGLWindowPtr"; }
94 template<typename RefCountPolicy
> inline
95 static const Char8
*getMName (void);
97 // static const char *getMName(void) { return "MFEGLWindowPtr"; }
101 const Char8
*FieldTraits
<EGLWindow
*, 0>::getSName
<RecordedRefCountPolicy
>(void)
103 return "SFRecEGLWindowPtr";
107 const Char8
*FieldTraits
<EGLWindow
*, 0>::getSName
<UnrecordedRefCountPolicy
>(void)
109 return "SFUnrecEGLWindowPtr";
113 const Char8
*FieldTraits
<EGLWindow
*, 0>::getSName
<WeakRefCountPolicy
>(void)
115 return "SFWeakEGLWindowPtr";
119 const Char8
*FieldTraits
<EGLWindow
*, 0>::getSName
<NoRefCountPolicy
>(void)
121 return "SFUnrefdEGLWindowPtr";
125 const Char8
*FieldTraits
<EGLWindow
*, 0>::getMName
<RecordedRefCountPolicy
>(void)
127 return "MFRecEGLWindowPtr";
131 const Char8
*FieldTraits
<EGLWindow
*, 0>::getMName
<UnrecordedRefCountPolicy
>(void)
133 return "MFUnrecEGLWindowPtr";
137 const Char8
*FieldTraits
<EGLWindow
*, 0>::getMName
<WeakRefCountPolicy
>(void)
139 return "MFWeakEGLWindowPtr";
143 const Char8
*FieldTraits
<EGLWindow
*, 0>::getMName
<NoRefCountPolicy
>(void)
145 return "MFUnrefdEGLWindowPtr";
149 #ifndef DOXYGEN_SHOULD_SKIP_THIS
150 /*! \ingroup GrpWindowEGLFieldSFields */
151 typedef PointerSField
<EGLWindow
*,
152 RecordedRefCountPolicy
> SFRecEGLWindowPtr
;
153 /*! \ingroup GrpWindowEGLFieldSFields */
154 typedef PointerSField
<EGLWindow
*,
155 UnrecordedRefCountPolicy
> SFUnrecEGLWindowPtr
;
156 /*! \ingroup GrpWindowEGLFieldSFields */
157 typedef PointerSField
<EGLWindow
*,
158 WeakRefCountPolicy
> SFWeakEGLWindowPtr
;
159 /*! \ingroup GrpWindowEGLFieldSFields */
160 typedef PointerSField
<EGLWindow
*,
161 NoRefCountPolicy
> SFUncountedEGLWindowPtr
;
164 /*! \ingroup GrpWindowEGLFieldMFields */
165 typedef PointerMField
<EGLWindow
*,
166 RecordedRefCountPolicy
> MFRecEGLWindowPtr
;
167 /*! \ingroup GrpWindowEGLFieldMFields */
168 typedef PointerMField
<EGLWindow
*,
169 UnrecordedRefCountPolicy
> MFUnrecEGLWindowPtr
;
170 /*! \ingroup GrpWindowEGLFieldMFields */
171 typedef PointerMField
<EGLWindow
*,
172 WeakRefCountPolicy
> MFWeakEGLWindowPtr
;
173 /*! \ingroup GrpWindowEGLFieldMFields */
174 typedef PointerMField
<EGLWindow
*,
175 NoRefCountPolicy
> MFUncountedEGLWindowPtr
;
180 #else // these are the doxygen hacks
182 /*! \ingroup GrpWindowEGLFieldSFields \ingroup GrpLibOSGWindowEGL */
183 struct SFRecEGLWindowPtr
:
184 public PointerSField
<EGLWindow
*,
185 RecordedRefCountPolicy
> {};
186 /*! \ingroup GrpWindowEGLFieldSFields \ingroup GrpLibOSGWindowEGL */
187 struct SFUnrecEGLWindowPtr
:
188 public PointerSField
<EGLWindow
*,
189 UnrecordedRefCountPolicy
> {};
190 /*! \ingroup GrpWindowEGLFieldSFields \ingroup GrpLibOSGWindowEGL */
191 struct SFWeakEGLWindowPtr
:
192 public PointerSField
<EGLWindow
*,
193 WeakRefCountPolicy
> {};
194 /*! \ingroup GrpWindowEGLFieldSFields \ingroup GrpLibOSGWindowEGL */
195 struct SFUncountedEGLWindowPtr
:
196 public PointerSField
<EGLWindow
*,
197 NoRefCountPolicy
> {};
200 /*! \ingroup GrpWindowEGLFieldMFields \ingroup GrpLibOSGWindowEGL */
201 struct MFRecEGLWindowPtr
:
202 public PointerMField
<EGLWindow
*,
203 RecordedRefCountPolicy
> {};
204 /*! \ingroup GrpWindowEGLFieldMFields \ingroup GrpLibOSGWindowEGL */
205 struct MFUnrecEGLWindowPtr
:
206 public PointerMField
<EGLWindow
*,
207 UnrecordedRefCountPolicy
> {};
208 /*! \ingroup GrpWindowEGLFieldMFields \ingroup GrpLibOSGWindowEGL */
209 struct MFWeakEGLWindowPtr
:
210 public PointerMField
<EGLWindow
*,
211 WeakRefCountPolicy
> {};
212 /*! \ingroup GrpWindowEGLFieldMFields \ingroup GrpLibOSGWindowEGL */
213 struct MFUncountedEGLWindowPtr
:
214 public PointerMField
<EGLWindow
*,
215 NoRefCountPolicy
> {};
219 #endif // these are the doxygen hacks
223 #endif /* _OSGEGLWINDOWFIELDS_H_ */