changed: gcc8 base update
[opensg.git] / Source / System / State / Base / OSGFullStateChunkBase.cpp
blobff9081a5ec0bff0035ed16e285026cccf01a8f1b
1 /*---------------------------------------------------------------------------*\
2 * OpenSG *
3 * *
4 * *
5 * Copyright (C) 2000-2013 by the OpenSG Forum *
6 * *
7 * www.opensg.org *
8 * *
9 * contact: dirk@opensg.org, gerrit.voss@vossg.org, carsten_neumann@gmx.net *
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 /*****************************************************************************\
40 *****************************************************************************
41 ** **
42 ** This file is automatically generated. **
43 ** **
44 ** Any changes made to this file WILL be lost when it is **
45 ** regenerated, which can become necessary at any time. **
46 ** **
47 ** Do not change this file, changes should be done in the derived **
48 ** class FullStateChunk!
49 ** **
50 *****************************************************************************
51 \*****************************************************************************/
53 #include <cstdlib>
54 #include <cstdio>
56 #ifdef WIN32
57 #pragma warning(disable: 4355) // turn off 'this' : used in base member initializer list warning
58 #pragma warning(disable: 4290) // disable exception specification warning
59 #endif
61 #include "OSGConfig.h"
66 #include "OSGFullStateChunkBase.h"
67 #include "OSGFullStateChunk.h"
69 #include <boost/bind.hpp>
71 OSG_BEGIN_NAMESPACE
73 /***************************************************************************\
74 * Description *
75 \***************************************************************************/
77 /*! \class OSG::FullStateChunk
78 See \ref PageSystemState for the conceptual background.
81 /***************************************************************************\
82 * Field Documentation *
83 \***************************************************************************/
86 /***************************************************************************\
87 * FieldType/FieldTrait Instantiation *
88 \***************************************************************************/
90 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
91 PointerType FieldTraits<FullStateChunk *, nsOSG>::_type(
92 "FullStateChunkPtr",
93 "StateChunkPtr",
94 FullStateChunk::getClassType(),
95 nsOSG);
96 #endif
98 OSG_FIELDTRAITS_GETTYPE_NS(FullStateChunk *, nsOSG)
100 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,
101 FullStateChunk *,
102 nsOSG)
104 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,
105 FullStateChunk *,
106 nsOSG)
108 /***************************************************************************\
109 * Field Description *
110 \***************************************************************************/
112 void FullStateChunkBase::classDescInserter(TypeObject &oType)
117 FullStateChunkBase::TypeObject FullStateChunkBase::_type(
118 FullStateChunkBase::getClassname(),
119 Inherited::getClassname(),
120 "NULL",
121 nsOSG, //Namespace
122 NULL,
123 reinterpret_cast<InitContainerF>(&FullStateChunk::initMethod),
124 reinterpret_cast<ExitContainerF>(&FullStateChunk::exitMethod),
125 reinterpret_cast<InitalInsertDescFunc>(
126 reinterpret_cast<void *>(&FullStateChunk::classDescInserter)),
127 false,
129 "<?xml version=\"1.0\"?>\n"
130 "\n"
131 "<FieldContainer\n"
132 " name=\"FullStateChunk\"\n"
133 " parent=\"StateChunk\"\n"
134 " library=\"System\"\n"
135 " structure=\"abstract\"\n"
136 " pointerfieldtypes=\"both\"\n"
137 " systemcomponent=\"true\"\n"
138 " parentsystemcomponent=\"true\"\n"
139 " decoratable=\"false\"\n"
140 " useLocalIncludes=\"false\"\n"
141 " docGroupBase=\"GrpSystemState\"\n"
142 " >\n"
143 " See \\ref PageSystemState for the conceptual background.\n"
144 "</FieldContainer>\n",
145 "See \\ref PageSystemState for the conceptual background.\n"
148 /*------------------------------ get -----------------------------------*/
150 FieldContainerType &FullStateChunkBase::getType(void)
152 return _type;
155 const FieldContainerType &FullStateChunkBase::getType(void) const
157 return _type;
160 UInt32 FullStateChunkBase::getContainerSize(void) const
162 return sizeof(FullStateChunk);
165 /*------------------------- decorator get ------------------------------*/
172 /*------------------------------ access -----------------------------------*/
174 SizeT FullStateChunkBase::getBinSize(ConstFieldMaskArg whichField)
176 SizeT returnValue = Inherited::getBinSize(whichField);
179 return returnValue;
182 void FullStateChunkBase::copyToBin(BinaryDataHandler &pMem,
183 ConstFieldMaskArg whichField)
185 Inherited::copyToBin(pMem, whichField);
189 void FullStateChunkBase::copyFromBin(BinaryDataHandler &pMem,
190 ConstFieldMaskArg whichField)
192 Inherited::copyFromBin(pMem, whichField);
199 /*------------------------- constructors ----------------------------------*/
201 FullStateChunkBase::FullStateChunkBase(void) :
202 Inherited()
206 FullStateChunkBase::FullStateChunkBase(const FullStateChunkBase &source) :
207 Inherited(source)
212 /*-------------------------- destructors ----------------------------------*/
214 FullStateChunkBase::~FullStateChunkBase(void)
220 #ifdef OSG_MT_CPTR_ASPECT
221 void FullStateChunkBase::execSyncV( FieldContainer &oFrom,
222 ConstFieldMaskArg whichField,
223 AspectOffsetStore &oOffsets,
224 ConstFieldMaskArg syncMode,
225 const UInt32 uiSyncInfo)
227 FullStateChunk *pThis = static_cast<FullStateChunk *>(this);
229 pThis->execSync(static_cast<FullStateChunk *>(&oFrom),
230 whichField,
231 oOffsets,
232 syncMode,
233 uiSyncInfo);
235 #endif
239 void FullStateChunkBase::resolveLinks(void)
241 Inherited::resolveLinks();
247 OSG_END_NAMESPACE