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 _OSGCARBONWINDOWFIELDS_H_
52 #define _OSGCARBONWINDOWFIELDS_H_
57 #include "OSGConfig.h"
58 #include "OSGWindowCarbonDef.h"
60 #include "OSGFieldContainerFields.h"
61 #include "OSGPointerSField.h"
62 #include "OSGPointerMField.h"
69 OSG_GEN_CONTAINERPTR(CarbonWindow
);
71 /*! \ingroup GrpWindowCarbonFieldTraits
72 \ingroup GrpLibOSGWindowCarbon
75 struct FieldTraits
<CarbonWindow
*> :
76 public FieldTraitsFCPtrBase
<CarbonWindow
*>
80 static DataType _type
;
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"; }
101 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getSName
<RecordedRefCountPolicy
>(void)
103 return "SFRecCarbonWindowPtr";
107 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getSName
<UnrecordedRefCountPolicy
>(void)
109 return "SFUnrecCarbonWindowPtr";
113 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getSName
<WeakRefCountPolicy
>(void)
115 return "SFWeakCarbonWindowPtr";
119 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getSName
<NoRefCountPolicy
>(void)
121 return "SFUnrefdCarbonWindowPtr";
125 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getMName
<RecordedRefCountPolicy
>(void)
127 return "MFRecCarbonWindowPtr";
131 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getMName
<UnrecordedRefCountPolicy
>(void)
133 return "MFUnrecCarbonWindowPtr";
137 const Char8
*FieldTraits
<CarbonWindow
*, 0>::getMName
<WeakRefCountPolicy
>(void)
139 return "MFWeakCarbonWindowPtr";
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
223 #endif /* _OSGCARBONWINDOWFIELDS_H_ */