fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / Test / SystemLib / OSGFCDPtrTestFCCustomAccess.h
blob3c990d93a29ef31f16f2ae77d496cc95acce2b7c
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 #ifndef _OSGFCDPTRTESTFCCUSTOMACCESS_H_
40 #define _OSGFCDPTRTESTFCCUSTOMACCESS_H_
41 #ifdef __sgi
42 #pragma once
43 #endif
45 #include "OSGFCDPtrTestFCCustomAccessBase.h"
46 #include "OSGFCDTestFC.h"
47 #include "OSGFCDSParTestFC.h"
49 OSG_BEGIN_NAMESPACE
51 /*! \brief FCDPtrTestFCCustomAccess class. See \ref
52 PageSystemFCDPtrTestFCCustomAccess for a description.
55 class OSG_SYSTEM_DLLMAPPING FCDPtrTestFCCustomAccess : public FCDPtrTestFCCustomAccessBase
57 protected:
59 /*========================== PUBLIC =================================*/
61 public:
63 typedef FCDPtrTestFCCustomAccessBase Inherited;
64 typedef FCDPtrTestFCCustomAccess Self;
66 /*---------------------------------------------------------------------*/
67 /*! \name Sync */
68 /*! \{ */
70 virtual void changed(ConstFieldMaskArg whichField,
71 UInt32 origin,
72 BitVector details );
74 /*! \} */
75 /*---------------------------------------------------------------------*/
76 /*! \name Output */
77 /*! \{ */
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 );
94 /*! \} */
95 /*---------------------------------------------------------------------*/
96 /*! \name Output */
97 /*! \{ */
99 virtual void dump( UInt32 uiIndent = 0,
100 const BitVector bvFlags = 0) const;
102 /*! \} */
103 /*========================= PROTECTED ===============================*/
105 protected:
107 // Variables should all be in FCDPtrTestFCCustomAccessBase.
109 /*---------------------------------------------------------------------*/
110 /*! \name Constructors */
111 /*! \{ */
113 FCDPtrTestFCCustomAccess(void);
114 FCDPtrTestFCCustomAccess(const FCDPtrTestFCCustomAccess &source);
116 /*! \} */
117 /*---------------------------------------------------------------------*/
118 /*! \name Destructors */
119 /*! \{ */
121 virtual ~FCDPtrTestFCCustomAccess(void);
123 /*! \} */
124 /*---------------------------------------------------------------------*/
125 /*! \name Field Set */
126 /*! \{ */
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 );
143 /*! \} */
144 /*---------------------------------------------------------------------*/
145 /*! \name Init */
146 /*! \{ */
148 static void initMethod(InitPhase ePhase);
150 /*! \} */
151 /*========================== PRIVATE ================================*/
153 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;
182 OSG_END_NAMESPACE
184 #include "OSGFCDPtrTestFCCustomAccessBase.inl"
185 #include "OSGFCDPtrTestFCCustomAccess.inl"
187 #endif /* _OSGFCDPTRTESTFCCUSTOMACCESS_H_ */