1 /*---------------------------------------------------------------------------*\
5 * Copyright (C) 2003 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 _OSGFILECONTEXTHANDLERMIXIN_H_
40 #define _OSGFILECONTEXTHANDLERMIXIN_H_
42 #include "OSGFileContextAttachment.h"
43 #include "OSGOSGSceneFileType.h"
45 #include <boost/bind.hpp>
49 /*! \ingroup GrpSystemFieldContainerMixins
50 \ingroup GrpLibOSGBase
53 template <class ParentT
, class ContainerT
>
54 class FileContextHandlerMixin
: public ParentT
56 /*========================== PRIVATE ================================*/
60 typedef ParentT Inherited
;
62 /*========================== PUBLIC =================================*/
66 typedef FileContextHandlerMixin
<ParentT
, ContainerT
> Self
;
68 /*---------------------------------------------------------------------*/
73 /*---------------------------------------------------------------------*/
74 /*! \name General Fieldcontainer Declaration */
78 /*---------------------------------------------------------------------*/
79 /*! \name Constructors */
83 /*---------------------------------------------------------------------*/
84 /*! \name Destructor */
88 /*---------------------------------------------------------------------*/
93 /*---------------------------------------------------------------------*/
98 /*---------------------------------------------------------------------*/
103 /*---------------------------------------------------------------------*/
104 /*! \name your_category */
108 /*---------------------------------------------------------------------*/
109 /*! \name Container Access */
113 /*---------------------------------------------------------------------*/
114 /*! \name Binary Access */
118 /*---------------------------------------------------------------------*/
119 /*! \name your_operators */
123 /*---------------------------------------------------------------------*/
124 /*! \name Assignment */
128 /*---------------------------------------------------------------------*/
129 /*! \name Comparison */
133 /*---------------------------------------------------------------------*/
138 /*========================= PROTECTED ===============================*/
142 /*---------------------------------------------------------------------*/
143 /*! \name Type information */
147 /*---------------------------------------------------------------------*/
152 /*---------------------------------------------------------------------*/
156 FileContextHandlerMixin(void);
157 FileContextHandlerMixin(const FileContextHandlerMixin
&source
);
159 virtual ~FileContextHandlerMixin(void);
162 /*---------------------------------------------------------------------*/
166 void postOSGLoading(FileContextAttachment
* const pContext
);
169 /*---------------------------------------------------------------------*/
170 /*! \name MT Destruction */
173 static void initMethod(typename
Inherited::InitPhase ePhase
);
176 /*---------------------------------------------------------------------*/
181 /*---------------------------------------------------------------------*/
186 /*---------------------------------------------------------------------*/
191 /*========================== PRIVATE ================================*/
195 friend struct OSGSceneFileType::PostLoadingDispatcher
<ContainerT
>;
197 /*!\brief prohibit default function (move to 'public' if needed) */
198 void operator =(const FileContextHandlerMixin
&source
);
203 #include "OSGFileContextHandlerMixin.inl"
205 #endif /* _OSGFILECONTEXTHANDLERMIXIN_H_ */