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 #ifndef _OSGFCDPTRTESTFCCUSTOMACCESS_H_
40 #define _OSGFCDPTRTESTFCCUSTOMACCESS_H_
45 #include "OSGFCDPtrTestFCCustomAccessBase.h"
46 #include "OSGFCDTestFC.h"
47 #include "OSGFCDSParTestFC.h"
51 /*! \brief FCDPtrTestFCCustomAccess class. See \ref
52 PageSystemFCDPtrTestFCCustomAccess for a description.
55 class OSG_SYSTEM_DLLMAPPING FCDPtrTestFCCustomAccess
: public FCDPtrTestFCCustomAccessBase
59 /*========================== PUBLIC =================================*/
63 typedef FCDPtrTestFCCustomAccessBase Inherited
;
64 typedef FCDPtrTestFCCustomAccess Self
;
66 /*---------------------------------------------------------------------*/
70 virtual void changed(ConstFieldMaskArg whichField
,
75 /*---------------------------------------------------------------------*/
79 void setFieldSFPub_ptr (FCDTestFC
* const value
);
80 void setFieldSFPub_weakptr(FCDTestFC
* const value
);
81 void setFieldSFPub_mpchildptr(FCDTestFC
* const value
);
82 void setFieldSFPub_spchildptr(FCDSParTestFC
* const value
);
84 void pushToFieldMFPub_ptr (FCDTestFC
* const value
);
85 void pushToFieldMFPub_weakptr (FCDTestFC
* const value
);
86 void pushToFieldMFPub_mpchildptr (FCDTestFC
* const value
);
87 void pushToFieldMFPub_spchildptr (FCDSParTestFC
* const value
);
89 void clearFieldMFPub_ptr (void );
90 void clearFieldMFPub_weakptr (void );
91 void clearFieldMFPub_mpchildptr (void );
92 void clearFieldMFPub_spchildptr (void );
95 /*---------------------------------------------------------------------*/
99 virtual void dump( UInt32 uiIndent
= 0,
100 const BitVector bvFlags
= 0) const;
103 /*========================= PROTECTED ===============================*/
107 // Variables should all be in FCDPtrTestFCCustomAccessBase.
109 /*---------------------------------------------------------------------*/
110 /*! \name Constructors */
113 FCDPtrTestFCCustomAccess(void);
114 FCDPtrTestFCCustomAccess(const FCDPtrTestFCCustomAccess
&source
);
117 /*---------------------------------------------------------------------*/
118 /*! \name Destructors */
121 virtual ~FCDPtrTestFCCustomAccess(void);
124 /*---------------------------------------------------------------------*/
125 /*! \name Field Set */
128 void setFieldSFPro_ptr (FCDTestFC
* const value
);
129 void setFieldSFPro_weakptr(FCDTestFC
* const value
);
130 void setFieldSFPro_mpchildptr(FCDTestFC
* const value
);
131 void setFieldSFPro_spchildptr(FCDSParTestFC
* const value
);
133 void pushToFieldMFPro_ptr (FCDTestFC
* const value
);
134 void pushToFieldMFPro_weakptr (FCDTestFC
* const value
);
135 void pushToFieldMFPro_mpchildptr (FCDTestFC
* const value
);
136 void pushToFieldMFPro_spchildptr (FCDSParTestFC
* const value
);
138 void clearFieldMFPro_ptr (void );
139 void clearFieldMFPro_weakptr (void );
140 void clearFieldMFPro_mpchildptr (void );
141 void clearFieldMFPro_spchildptr (void );
144 /*---------------------------------------------------------------------*/
148 static void initMethod(InitPhase ePhase
);
151 /*========================== PRIVATE ================================*/
155 /*---------------------------------------------------------------------*/
156 /*! \name Field Set */
158 void setFieldSFPri_ptr (FCDTestFC
* const value
);
159 void setFieldSFPri_weakptr(FCDTestFC
* const value
);
160 void setFieldSFPri_mpchildptr(FCDTestFC
* const value
);
161 void setFieldSFPri_spchildptr(FCDSParTestFC
* const value
);
163 void pushToFieldMFPri_ptr (FCDTestFC
* const value
);
164 void pushToFieldMFPri_weakptr (FCDTestFC
* const value
);
165 void pushToFieldMFPri_mpchildptr (FCDTestFC
* const value
);
166 void pushToFieldMFPri_spchildptr (FCDSParTestFC
* const value
);
168 void clearFieldMFPri_ptr (void );
169 void clearFieldMFPri_weakptr (void );
170 void clearFieldMFPri_mpchildptr (void );
171 void clearFieldMFPri_spchildptr (void );
173 friend class FieldContainer
;
174 friend class FCDPtrTestFCCustomAccessBase
;
176 // prohibit default functions (move to 'public' if you need one)
177 void operator =(const FCDPtrTestFCCustomAccess
&source
);
180 typedef FCDPtrTestFCCustomAccess
*FCDPtrTestFCCustomAccessP
;
184 #include "OSGFCDPtrTestFCCustomAccessBase.inl"
185 #include "OSGFCDPtrTestFCCustomAccess.inl"
187 #endif /* _OSGFCDPTRTESTFCCUSTOMACCESS_H_ */