changed: auto add updateData callback to stages so that stagedata can be updated...
[opensg.git] / Source / WindowSystem / CoreGL / OSGCoreGLWindowFields.h
blob764361bcc9079639d3ff001f93672eea5e9ba7b7
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 _OSGCOREGLWINDOWFIELDS_H_
52 #define _OSGCOREGLWINDOWFIELDS_H_
53 #ifdef __sgi
54 #pragma once
55 #endif
57 #include "OSGConfig.h"
58 #include "OSGWindowCoreGLDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
65 OSG_BEGIN_NAMESPACE
67 class CoreGLWindow;
69 OSG_GEN_CONTAINERPTR(CoreGLWindow);
71 /*! \ingroup GrpWindowCoreGLFieldTraits
72 \ingroup GrpLibOSGWindowCoreGL
74 template <>
75 struct FieldTraits<CoreGLWindow *> :
76 public FieldTraitsFCPtrBase<CoreGLWindow *>
78 private:
80 static DataType _type;
82 public:
84 typedef FieldTraits<CoreGLWindow *> Self;
86 enum { Convertible = NotConvertible };
88 static OSG_WINDOWCOREGL_DLLMAPPING DataType &getType(void);
90 template<typename RefCountPolicy> inline
91 static const Char8 *getSName (void);
93 // static const char *getSName(void) { return "SFCoreGLWindowPtr"; }
94 template<typename RefCountPolicy> inline
95 static const Char8 *getMName (void);
97 // static const char *getMName(void) { return "MFCoreGLWindowPtr"; }
100 template<> inline
101 const Char8 *FieldTraits<CoreGLWindow *, 0>::getSName<RecordedRefCountPolicy>(void)
103 return "SFRecCoreGLWindowPtr";
106 template<> inline
107 const Char8 *FieldTraits<CoreGLWindow *, 0>::getSName<UnrecordedRefCountPolicy>(void)
109 return "SFUnrecCoreGLWindowPtr";
112 template<> inline
113 const Char8 *FieldTraits<CoreGLWindow *, 0>::getSName<WeakRefCountPolicy>(void)
115 return "SFWeakCoreGLWindowPtr";
118 template<> inline
119 const Char8 *FieldTraits<CoreGLWindow *, 0>::getSName<NoRefCountPolicy>(void)
121 return "SFUnrefdCoreGLWindowPtr";
124 template<> inline
125 const Char8 *FieldTraits<CoreGLWindow *, 0>::getMName<RecordedRefCountPolicy>(void)
127 return "MFRecCoreGLWindowPtr";
130 template<> inline
131 const Char8 *FieldTraits<CoreGLWindow *, 0>::getMName<UnrecordedRefCountPolicy>(void)
133 return "MFUnrecCoreGLWindowPtr";
136 template<> inline
137 const Char8 *FieldTraits<CoreGLWindow *, 0>::getMName<WeakRefCountPolicy>(void)
139 return "MFWeakCoreGLWindowPtr";
142 template<> inline
143 const Char8 *FieldTraits<CoreGLWindow *, 0>::getMName<NoRefCountPolicy>(void)
145 return "MFUnrefdCoreGLWindowPtr";
149 #ifndef DOXYGEN_SHOULD_SKIP_THIS
150 /*! \ingroup GrpWindowCoreGLFieldSFields */
151 typedef PointerSField<CoreGLWindow *,
152 RecordedRefCountPolicy > SFRecCoreGLWindowPtr;
153 /*! \ingroup GrpWindowCoreGLFieldSFields */
154 typedef PointerSField<CoreGLWindow *,
155 UnrecordedRefCountPolicy> SFUnrecCoreGLWindowPtr;
156 /*! \ingroup GrpWindowCoreGLFieldSFields */
157 typedef PointerSField<CoreGLWindow *,
158 WeakRefCountPolicy > SFWeakCoreGLWindowPtr;
159 /*! \ingroup GrpWindowCoreGLFieldSFields */
160 typedef PointerSField<CoreGLWindow *,
161 NoRefCountPolicy > SFUncountedCoreGLWindowPtr;
164 /*! \ingroup GrpWindowCoreGLFieldMFields */
165 typedef PointerMField<CoreGLWindow *,
166 RecordedRefCountPolicy > MFRecCoreGLWindowPtr;
167 /*! \ingroup GrpWindowCoreGLFieldMFields */
168 typedef PointerMField<CoreGLWindow *,
169 UnrecordedRefCountPolicy> MFUnrecCoreGLWindowPtr;
170 /*! \ingroup GrpWindowCoreGLFieldMFields */
171 typedef PointerMField<CoreGLWindow *,
172 WeakRefCountPolicy > MFWeakCoreGLWindowPtr;
173 /*! \ingroup GrpWindowCoreGLFieldMFields */
174 typedef PointerMField<CoreGLWindow *,
175 NoRefCountPolicy > MFUncountedCoreGLWindowPtr;
180 #else // these are the doxygen hacks
182 /*! \ingroup GrpWindowCoreGLFieldSFields \ingroup GrpLibOSGWindowCoreGL */
183 struct SFRecCoreGLWindowPtr :
184 public PointerSField<CoreGLWindow *,
185 RecordedRefCountPolicy> {};
186 /*! \ingroup GrpWindowCoreGLFieldSFields \ingroup GrpLibOSGWindowCoreGL */
187 struct SFUnrecCoreGLWindowPtr :
188 public PointerSField<CoreGLWindow *,
189 UnrecordedRefCountPolicy> {};
190 /*! \ingroup GrpWindowCoreGLFieldSFields \ingroup GrpLibOSGWindowCoreGL */
191 struct SFWeakCoreGLWindowPtr :
192 public PointerSField<CoreGLWindow *,
193 WeakRefCountPolicy> {};
194 /*! \ingroup GrpWindowCoreGLFieldSFields \ingroup GrpLibOSGWindowCoreGL */
195 struct SFUncountedCoreGLWindowPtr :
196 public PointerSField<CoreGLWindow *,
197 NoRefCountPolicy> {};
200 /*! \ingroup GrpWindowCoreGLFieldMFields \ingroup GrpLibOSGWindowCoreGL */
201 struct MFRecCoreGLWindowPtr :
202 public PointerMField<CoreGLWindow *,
203 RecordedRefCountPolicy > {};
204 /*! \ingroup GrpWindowCoreGLFieldMFields \ingroup GrpLibOSGWindowCoreGL */
205 struct MFUnrecCoreGLWindowPtr :
206 public PointerMField<CoreGLWindow *,
207 UnrecordedRefCountPolicy> {};
208 /*! \ingroup GrpWindowCoreGLFieldMFields \ingroup GrpLibOSGWindowCoreGL */
209 struct MFWeakCoreGLWindowPtr :
210 public PointerMField<CoreGLWindow *,
211 WeakRefCountPolicy > {};
212 /*! \ingroup GrpWindowCoreGLFieldMFields \ingroup GrpLibOSGWindowCoreGL */
213 struct MFUncountedCoreGLWindowPtr :
214 public PointerMField<CoreGLWindow *,
215 NoRefCountPolicy > {};
219 #endif // these are the doxygen hacks
221 OSG_END_NAMESPACE
223 #endif /* _OSGCOREGLWINDOWFIELDS_H_ */