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