OSGAlgorithmBase.cpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *               Copyright (C) 2000-2006 by the OpenSG Forum                 *
00006  *                                                                           *
00007  *                            www.opensg.org                                 *
00008  *                                                                           *
00009  *   contact: dirk@opensg.org, gerrit.voss@vossg.org, jbehr@zgdv.de          *
00010  *                                                                           *
00011 \*---------------------------------------------------------------------------*/
00012 /*---------------------------------------------------------------------------*\
00013  *                                License                                    *
00014  *                                                                           *
00015  * This library is free software; you can redistribute it and/or modify it   *
00016  * under the terms of the GNU Library General Public License as published    *
00017  * by the Free Software Foundation, version 2.                               *
00018  *                                                                           *
00019  * This library is distributed in the hope that it will be useful, but       *
00020  * WITHOUT ANY WARRANTY; without even the implied warranty of                *
00021  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU         *
00022  * Library General Public License for more details.                          *
00023  *                                                                           *
00024  * You should have received a copy of the GNU Library General Public         *
00025  * License along with this library; if not, write to the Free Software       *
00026  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.                 *
00027  *                                                                           *
00028 \*---------------------------------------------------------------------------*/
00029 /*---------------------------------------------------------------------------*\
00030  *                                Changes                                    *
00031  *                                                                           *
00032  *                                                                           *
00033  *                                                                           *
00034  *                                                                           *
00035  *                                                                           *
00036  *                                                                           *
00037 \*---------------------------------------------------------------------------*/
00038 
00039 /*****************************************************************************\
00040  *****************************************************************************
00041  **                                                                         **
00042  **                  This file is automatically generated.                  **
00043  **                                                                         **
00044  **          Any changes made to this file WILL be lost when it is          **
00045  **           regenerated, which can become necessary at any time.          **
00046  **                                                                         **
00047  **     Do not change this file, changes should be done in the derived      **
00048  **     class Algorithm!
00049  **                                                                         **
00050  *****************************************************************************
00051 \*****************************************************************************/
00052 
00053 
00054 #define OSG_COMPILEALGORITHMINST
00055 
00056 #include <cstdlib>
00057 #include <cstdio>
00058 #include <boost/assign/list_of.hpp>
00059 
00060 #include <OSGConfig.h>
00061 
00062 
00063 
00064 
00065 #include "OSGAlgorithmBase.h"
00066 #include "OSGAlgorithm.h"
00067 
00068 #include "boost/bind.hpp"
00069 
00070 OSG_BEGIN_NAMESPACE
00071 
00072 /***************************************************************************\
00073  *                            Description                                  *
00074 \***************************************************************************/
00075 
00081 AlgorithmBase::TypeObject AlgorithmBase::_type(
00082     AlgorithmBase::getClassname(),
00083     Inherited::getClassname(),
00084     "NULL",
00085     0,
00086     NULL,
00087     Algorithm::initMethod,
00088     NULL,
00089     false,
00090     0,
00091     "<?xml version=\"1.0\"?>\n"
00092     "\n"
00093     "<FieldContainer\n"
00094     "\tname=\"Algorithm\"\n"
00095     "\tparent=\"FieldContainer\"\n"
00096     "\tlibrary=\"Group\"\n"
00097     "\tpointerfieldtypes=\"both\"\n"
00098     "\tstructure=\"abstract\"\n"
00099     "\tsystemcomponent=\"true\"\n"
00100     "\tparentsystemcomponent=\"true\"\n"
00101     "\tdecoratable=\"false\"\n"
00102     "\tuseLocalIncludes=\"false\"\n"
00103     "    isNodeCore=\"true\"\n"
00104     ">\n"
00105     "</FieldContainer>\n",
00106     ""
00107     );
00108 
00109 /*------------------------------ get -----------------------------------*/
00110 
00111 FieldContainerType &AlgorithmBase::getType(void)
00112 {
00113     return _type;
00114 }
00115 
00116 const FieldContainerType &AlgorithmBase::getType(void) const
00117 {
00118     return _type;
00119 }
00120 
00121 UInt32 AlgorithmBase::getContainerSize(void) const
00122 {
00123     return sizeof(Algorithm);
00124 }
00125 
00126 /*------------------------- decorator get ------------------------------*/
00127 
00128 
00129 
00130 
00131 
00132 
00133 /*------------------------------ access -----------------------------------*/
00134 
00135 UInt32 AlgorithmBase::getBinSize(ConstFieldMaskArg whichField)
00136 {
00137     UInt32 returnValue = Inherited::getBinSize(whichField);
00138 
00139 
00140     return returnValue;
00141 }
00142 
00143 void AlgorithmBase::copyToBin(BinaryDataHandler &pMem,
00144                                   ConstFieldMaskArg  whichField)
00145 {
00146     Inherited::copyToBin(pMem, whichField);
00147 
00148 }
00149 
00150 void AlgorithmBase::copyFromBin(BinaryDataHandler &pMem,
00151                                     ConstFieldMaskArg  whichField)
00152 {
00153     Inherited::copyFromBin(pMem, whichField);
00154 
00155 }
00156 
00157 
00158 
00159 
00160 /*------------------------- constructors ----------------------------------*/
00161 
00162 AlgorithmBase::AlgorithmBase(void) :
00163     Inherited()
00164 {
00165 }
00166 
00167 AlgorithmBase::AlgorithmBase(const AlgorithmBase &source) :
00168     Inherited(source)
00169 {
00170 }
00171 
00172 
00173 /*-------------------------- destructors ----------------------------------*/
00174 
00175 AlgorithmBase::~AlgorithmBase(void)
00176 {
00177 }
00178 
00179 
00180 
00181 #ifdef OSG_MT_CPTR_ASPECT
00182 void AlgorithmBase::execSyncV(      FieldContainer    &oFrom,
00183                                         ConstFieldMaskArg  whichField,
00184                                         AspectOffsetStore &oOffsets,
00185                                         ConstFieldMaskArg  syncMode,
00186                                   const UInt32             uiSyncInfo)
00187 {
00188     this->execSync(static_cast<AlgorithmBase *>(&oFrom),
00189                    whichField,
00190                    oOffsets,
00191                    syncMode,
00192                    uiSyncInfo);
00193 }
00194 #endif
00195 
00196 
00197 
00198 void AlgorithmBase::resolveLinks(void)
00199 {
00200     Inherited::resolveLinks();
00201 
00202 
00203 }
00204 
00205 
00206 OSG_END_NAMESPACE
00207 
00208 #include "OSGSFieldAdaptor.ins"
00209 #include "OSGMFieldAdaptor.ins"
00210 
00211 OSG_BEGIN_NAMESPACE
00212 
00213 #if !defined(OSG_DO_DOC) || defined(OSG_DOC_DEV)
00214 DataType FieldTraits<AlgorithmPtr>::_type("AlgorithmPtr", "FieldContainerPtr");
00215 #endif
00216 
00217 OSG_FIELDTRAITS_GETTYPE(AlgorithmPtr)
00218 
00219 OSG_FIELD_DLLEXPORT_DEF2(SFieldAdaptor, AlgorithmPtr, SFFieldContainerPtr);
00220 OSG_FIELD_DLLEXPORT_DEF2(MFieldAdaptor, AlgorithmPtr, MFFieldContainerPtr);
00221 
00222 OSG_END_NAMESPACE