changed: gcc8 base update
[opensg.git] / Source / System / NodeCores / Groups / Base / OSGRootGroupBase.cpp
blobb6c2b261d9fb4ada68f3ce3b9681bf96503140e5
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 RootGroup!
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 "OSGRootGroupBase.h"
67 #include "OSGRootGroup.h"
69 #include <boost/bind.hpp>
71 OSG_BEGIN_NAMESPACE
73 /***************************************************************************\
74 * Description *
75 \***************************************************************************/
77 /*! \class OSG::RootGroup
78 A group that stores its children not in the parent node but in a
79 sfNodePtr locally with the core.
82 /***************************************************************************\
83 * Field Documentation *
84 \***************************************************************************/
87 /***************************************************************************\
88 * FieldType/FieldTrait Instantiation *
89 \***************************************************************************/
91 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
92 PointerType FieldTraits<RootGroup *, nsOSG>::_type(
93 "RootGroupPtr",
94 "NodeCorePtr",
95 RootGroup::getClassType(),
96 nsOSG);
97 #endif
99 OSG_FIELDTRAITS_GETTYPE_NS(RootGroup *, nsOSG)
101 OSG_EXPORT_PTR_SFIELD_FULL(PointerSField,
102 RootGroup *,
103 nsOSG)
105 OSG_EXPORT_PTR_MFIELD_FULL(PointerMField,
106 RootGroup *,
107 nsOSG)
109 /***************************************************************************\
110 * Field Description *
111 \***************************************************************************/
113 void RootGroupBase::classDescInserter(TypeObject &oType)
118 RootGroupBase::TypeObject RootGroupBase::_type(
119 RootGroupBase::getClassname(),
120 Inherited::getClassname(),
121 "NULL",
122 nsOSG, //Namespace
123 NULL,
124 reinterpret_cast<InitContainerF>(&RootGroup::initMethod),
125 reinterpret_cast<ExitContainerF>(&RootGroup::exitMethod),
126 reinterpret_cast<InitalInsertDescFunc>(
127 reinterpret_cast<void *>(&RootGroup::classDescInserter)),
128 false,
130 "<?xml version=\"1.0\" ?>\n"
131 "\n"
132 "<FieldContainer\n"
133 " name=\"RootGroup\"\n"
134 " parent=\"NodeCore\"\n"
135 " library=\"System\"\n"
136 " structure=\"abstract\"\n"
137 " pointerfieldtypes=\"both\"\n"
138 " systemcomponent=\"true\"\n"
139 " parentsystemcomponent=\"true\"\n"
140 " isNodeCore=\"true\"\n"
141 " docGroupBase=\"GrpSystemNodeCoreGroups\"\n"
142 " >\n"
143 "\n"
144 " A group that stores its children not in the parent node but in a \n"
145 " sfNodePtr locally with the core.\n"
146 "</FieldContainer>\n",
147 "A group that stores its children not in the parent node but in a \n"
148 "sfNodePtr locally with the core.\n"
151 /*------------------------------ get -----------------------------------*/
153 FieldContainerType &RootGroupBase::getType(void)
155 return _type;
158 const FieldContainerType &RootGroupBase::getType(void) const
160 return _type;
163 UInt32 RootGroupBase::getContainerSize(void) const
165 return sizeof(RootGroup);
168 /*------------------------- decorator get ------------------------------*/
175 /*------------------------------ access -----------------------------------*/
177 SizeT RootGroupBase::getBinSize(ConstFieldMaskArg whichField)
179 SizeT returnValue = Inherited::getBinSize(whichField);
182 return returnValue;
185 void RootGroupBase::copyToBin(BinaryDataHandler &pMem,
186 ConstFieldMaskArg whichField)
188 Inherited::copyToBin(pMem, whichField);
192 void RootGroupBase::copyFromBin(BinaryDataHandler &pMem,
193 ConstFieldMaskArg whichField)
195 Inherited::copyFromBin(pMem, whichField);
202 /*------------------------- constructors ----------------------------------*/
204 RootGroupBase::RootGroupBase(void) :
205 Inherited()
209 RootGroupBase::RootGroupBase(const RootGroupBase &source) :
210 Inherited(source)
215 /*-------------------------- destructors ----------------------------------*/
217 RootGroupBase::~RootGroupBase(void)
223 #ifdef OSG_MT_CPTR_ASPECT
224 void RootGroupBase::execSyncV( FieldContainer &oFrom,
225 ConstFieldMaskArg whichField,
226 AspectOffsetStore &oOffsets,
227 ConstFieldMaskArg syncMode,
228 const UInt32 uiSyncInfo)
230 RootGroup *pThis = static_cast<RootGroup *>(this);
232 pThis->execSync(static_cast<RootGroup *>(&oFrom),
233 whichField,
234 oOffsets,
235 syncMode,
236 uiSyncInfo);
238 #endif
242 void RootGroupBase::resolveLinks(void)
244 Inherited::resolveLinks();
250 OSG_END_NAMESPACE