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 _OSGCHUNKLISTHANDLERMIXIN_H_
40 #define _OSGCHUNKLISTHANDLERMIXIN_H_
45 #include "OSGBaseTypes.h"
47 #include <boost/bind.hpp>
53 /*! \brief Mixin for handling map caches.
54 \ingroup GrpSystemFieldContainerMixins
55 \ingroup GrpLibOSGBase
59 class ChunkListHandlerMixin
: public Desc::ParentT
61 /*========================== PRIVATE ================================*/
65 typedef typename
Desc::ParentT Inherited
;
67 /*========================== PUBLIC =================================*/
71 typedef ChunkListHandlerMixin
<Desc
> Self
;
73 typedef typename
Inherited::TypeObject TypeObject
;
74 typedef typename
Desc::FinalContainer FinalContainer
;
75 typedef typename
Desc::ChunkHelper ChunkHelper
;
77 typedef typename
Desc::ChunksFieldType MFChunksType
;
79 class ListEditHandle
: public MFChunksType::EditHandle
83 typedef typename
MFChunksType::EditHandle Inherited
;
84 typedef typename
Inherited::HandledField FieldT
;
88 ListEditHandle(const ListEditHandle
&source
);
89 ListEditHandle( FieldT
*pField
,
90 const FieldDescriptionBase
*pDescription
,
91 FieldContainer
*pContainer
);
94 virtual bool add(FieldContainer
*newFC
) const;
97 typedef boost::shared_ptr
<ListEditHandle
> ListEditHandlePtr
;
99 /*---------------------------------------------------------------------*/
104 /*---------------------------------------------------------------------*/
105 /*! \name General Fieldcontainer Declaration */
109 /*---------------------------------------------------------------------*/
110 /*! \name Constructors */
114 /*---------------------------------------------------------------------*/
115 /*! \name Destructor */
119 /*---------------------------------------------------------------------*/
124 /*---------------------------------------------------------------------*/
129 /*---------------------------------------------------------------------*/
134 /*---------------------------------------------------------------------*/
135 /*! \name your_category */
139 /*---------------------------------------------------------------------*/
140 /*! \name Container Access */
144 /*---------------------------------------------------------------------*/
145 /*! \name your_category */
149 /*---------------------------------------------------------------------*/
150 /*! \name Binary Access */
154 /*---------------------------------------------------------------------*/
155 /*! \name your_operators */
159 /*---------------------------------------------------------------------*/
160 /*! \name Assignment */
164 /*---------------------------------------------------------------------*/
165 /*! \name Comparison */
169 /*---------------------------------------------------------------------*/
173 virtual void dump( UInt32 uiIndent
= 0,
174 const BitVector bvFlags
= 0) const;
177 /*========================= PROTECTED ===============================*/
181 /*---------------------------------------------------------------------*/
182 /*! \name Type information */
186 /*---------------------------------------------------------------------*/
191 /*---------------------------------------------------------------------*/
195 ChunkListHandlerMixin(void);
196 ChunkListHandlerMixin(const ChunkListHandlerMixin
&source
);
198 virtual ~ChunkListHandlerMixin(void);
201 /*---------------------------------------------------------------------*/
206 /*---------------------------------------------------------------------*/
207 /*! \name MT Destruction */
211 /*---------------------------------------------------------------------*/
216 /*---------------------------------------------------------------------*/
220 EditFieldHandlePtr
editHandleChunks(void);
223 /*---------------------------------------------------------------------*/
228 /*========================== PRIVATE ================================*/
232 /*!\brief prohibit default function (move to 'public' if needed) */
233 void operator =(const ChunkListHandlerMixin
&source
);
238 #include "OSGChunkListHandlerMixin.inl"
240 #endif /* _OSGCHUNKLISTHANDLERMIXIN_H_ */