changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / WindowSystem / EGL / OSGEGLWindowFields.h
blob5b48df04597b1914d9c5153c2889878be90f20f5
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 _OSGEGLWINDOWFIELDS_H_
52 #define _OSGEGLWINDOWFIELDS_H_
53 #ifdef __sgi
54 #pragma once
55 #endif
57 #include "OSGConfig.h"
58 #include "OSGWindowEGLDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
65 OSG_BEGIN_NAMESPACE
67 class EGLWindow;
69 OSG_GEN_CONTAINERPTR(EGLWindow);
71 /*! \ingroup GrpWindowEGLFieldTraits
72 \ingroup GrpLibOSGWindowEGL
74 template <>
75 struct FieldTraits<EGLWindow *> :
76 public FieldTraitsFCPtrBase<EGLWindow *>
78 private:
80 static DataType _type;
82 public:
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"; }
100 template<> inline
101 const Char8 *FieldTraits<EGLWindow *, 0>::getSName<RecordedRefCountPolicy>(void)
103 return "SFRecEGLWindowPtr";
106 template<> inline
107 const Char8 *FieldTraits<EGLWindow *, 0>::getSName<UnrecordedRefCountPolicy>(void)
109 return "SFUnrecEGLWindowPtr";
112 template<> inline
113 const Char8 *FieldTraits<EGLWindow *, 0>::getSName<WeakRefCountPolicy>(void)
115 return "SFWeakEGLWindowPtr";
118 template<> inline
119 const Char8 *FieldTraits<EGLWindow *, 0>::getSName<NoRefCountPolicy>(void)
121 return "SFUnrefdEGLWindowPtr";
124 template<> inline
125 const Char8 *FieldTraits<EGLWindow *, 0>::getMName<RecordedRefCountPolicy>(void)
127 return "MFRecEGLWindowPtr";
130 template<> inline
131 const Char8 *FieldTraits<EGLWindow *, 0>::getMName<UnrecordedRefCountPolicy>(void)
133 return "MFUnrecEGLWindowPtr";
136 template<> inline
137 const Char8 *FieldTraits<EGLWindow *, 0>::getMName<WeakRefCountPolicy>(void)
139 return "MFWeakEGLWindowPtr";
142 template<> inline
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
221 OSG_END_NAMESPACE
223 #endif /* _OSGEGLWINDOWFIELDS_H_ */