fixed: auto_ptr -> unique_ptr
[opensg.git] / Source / System / FileIO / Base / OSGFileContextHandlerMixin.h
blobbf3429bbc24b09437d836d56153c5c57b32fdd27
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2003 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 _OSGFILECONTEXTHANDLERMIXIN_H_
40 #define _OSGFILECONTEXTHANDLERMIXIN_H_
42 #include "OSGFileContextAttachment.h"
43 #include "OSGOSGSceneFileType.h"
45 #include <boost/bind.hpp>
47 OSG_BEGIN_NAMESPACE
49 /*! \ingroup GrpSystemFieldContainerMixins
50 \ingroup GrpLibOSGBase
53 template <class ParentT, class ContainerT>
54 class FileContextHandlerMixin : public ParentT
56 /*========================== PRIVATE ================================*/
58 protected:
60 typedef ParentT Inherited;
62 /*========================== PUBLIC =================================*/
64 public:
66 typedef FileContextHandlerMixin<ParentT, ContainerT> Self;
68 /*---------------------------------------------------------------------*/
69 /*! \name dcast */
70 /*! \{ */
72 /*! \} */
73 /*---------------------------------------------------------------------*/
74 /*! \name General Fieldcontainer Declaration */
75 /*! \{ */
77 /*! \} */
78 /*---------------------------------------------------------------------*/
79 /*! \name Constructors */
80 /*! \{ */
82 /*! \} */
83 /*---------------------------------------------------------------------*/
84 /*! \name Destructor */
85 /*! \{ */
87 /*! \} */
88 /*---------------------------------------------------------------------*/
89 /*! \name Helper */
90 /*! \{ */
92 /*! \} */
93 /*---------------------------------------------------------------------*/
94 /*! \name Get */
95 /*! \{ */
97 /*! \} */
98 /*---------------------------------------------------------------------*/
99 /*! \name Set */
100 /*! \{ */
102 /*! \} */
103 /*---------------------------------------------------------------------*/
104 /*! \name your_category */
105 /*! \{ */
107 /*! \} */
108 /*---------------------------------------------------------------------*/
109 /*! \name Container Access */
110 /*! \{ */
112 /*! \} */
113 /*---------------------------------------------------------------------*/
114 /*! \name Binary Access */
115 /*! \{ */
117 /*! \} */
118 /*---------------------------------------------------------------------*/
119 /*! \name your_operators */
120 /*! \{ */
122 /*! \} */
123 /*---------------------------------------------------------------------*/
124 /*! \name Assignment */
125 /*! \{ */
127 /*! \} */
128 /*---------------------------------------------------------------------*/
129 /*! \name Comparison */
130 /*! \{ */
132 /*! \} */
133 /*---------------------------------------------------------------------*/
134 /*! \name Dump */
135 /*! \{ */
137 /*! \} */
138 /*========================= PROTECTED ===============================*/
140 protected:
142 /*---------------------------------------------------------------------*/
143 /*! \name Type information */
144 /*! \{ */
146 /*! \} */
147 /*---------------------------------------------------------------------*/
148 /*! \name Fields */
149 /*! \{ */
151 /*! \} */
152 /*---------------------------------------------------------------------*/
153 /*! \name Member */
154 /*! \{ */
156 FileContextHandlerMixin(void);
157 FileContextHandlerMixin(const FileContextHandlerMixin &source);
159 virtual ~FileContextHandlerMixin(void);
161 /*! \} */
162 /*---------------------------------------------------------------------*/
163 /*! \name Changed */
164 /*! \{ */
166 void postOSGLoading(FileContextAttachment * const pContext);
168 /*! \} */
169 /*---------------------------------------------------------------------*/
170 /*! \name MT Destruction */
171 /*! \{ */
173 static void initMethod(typename Inherited::InitPhase ePhase);
175 /*! \} */
176 /*---------------------------------------------------------------------*/
177 /*! \name Edit */
178 /*! \{ */
180 /*! \} */
181 /*---------------------------------------------------------------------*/
182 /*! \name Edit */
183 /*! \{ */
185 /*! \} */
186 /*---------------------------------------------------------------------*/
187 /*! \name Sync */
188 /*! \{ */
190 /*! \} */
191 /*========================== PRIVATE ================================*/
193 private:
195 friend struct OSGSceneFileType::PostLoadingDispatcher<ContainerT>;
197 /*!\brief prohibit default function (move to 'public' if needed) */
198 void operator =(const FileContextHandlerMixin &source);
201 OSG_END_NAMESPACE
203 #include "OSGFileContextHandlerMixin.inl"
205 #endif /* _OSGFILECONTEXTHANDLERMIXIN_H_ */