Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OSGFieldDescription.cpp

Go to the documentation of this file.
00001 /*---------------------------------------------------------------------------*\
00002  *                                OpenSG                                     *
00003  *                                                                           *
00004  *                                                                           *
00005  *             Copyright (C) 2000-2002 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 #ifdef OSG_DOC_FILES_IN_MODULE
00040 
00043 #endif
00044 
00045 #include <stdlib.h>
00046 #include <stdio.h>
00047 
00048 #include "OSGConfig.h"
00049 
00050 #include <iostream>
00051 
00052 #include "OSGFieldDescription.h"
00053 
00054 OSG_USING_NAMESPACE
00055 
00056 /*-------------------------------------------------------------------------*/
00057 /*                            Constructors                                 */
00058 
00059 FieldDescription::FieldDescription(const TypeBase          &elementType,
00060                                    const Char8             *szName,
00061                                    const UInt32             uiFieldId,
00062                                    const BitVector          vFieldMask,
00063                                    const bool               bInternal,
00064                                          FieldAccessMethod  fAccessMethod,
00065                                    const Char8             *defaultValue) :
00066 
00067     _szName              (szName       ),
00068 
00069     _fieldType           (elementType  ),
00070     _uiFieldId           (uiFieldId    ),
00071     _vFieldMask          (vFieldMask   ),
00072 
00073     _bInternal           (bInternal    ),
00074 
00075     _fAccessMethod       (fAccessMethod),
00076     _fIndexedAccessMethod(NULL         ),
00077     _defaultValue        (defaultValue )
00078 {
00079 }
00080 
00081 FieldDescription::FieldDescription(
00082     const TypeBase               &elementType,
00083     const Char8                  *szName,
00084     const UInt32                  uiFieldId,
00085     const BitVector               vFieldMask,
00086     const bool                    bInternal,
00087           FieldIndexAccessMethod  fIndexedAccessMethod,
00088     const Char8                  *defaultValue) :
00089 
00090     _szName              (szName              ),
00091 
00092     _fieldType           (elementType         ),
00093     _uiFieldId           (uiFieldId           ),
00094     _vFieldMask          (vFieldMask          ),
00095 
00096     _bInternal           (bInternal           ),
00097 
00098     _fAccessMethod       (NULL                ),
00099     _fIndexedAccessMethod(fIndexedAccessMethod),
00100 
00101     _defaultValue        (defaultValue        )
00102 {
00103 }
00104 
00105 FieldDescription::FieldDescription(const FieldDescription &source) :
00106 
00107     _szName              (source._szName              ),
00108 
00109     _fieldType           (source._fieldType           ),
00110     _uiFieldId           (source._uiFieldId           ),
00111     _vFieldMask          (source._vFieldMask          ),
00112 
00113     _bInternal           (source._bInternal           ),
00114 
00115     _fAccessMethod       (source._fAccessMethod       ),
00116     _fIndexedAccessMethod(source._fIndexedAccessMethod),
00117 
00118     _defaultValue        (source._defaultValue        )
00119 {
00120 }
00121 
00122 /*-------------------------------------------------------------------------*/
00123 /*                             Destructor                                  */
00124 
00125 FieldDescription::~FieldDescription(void)
00126 {
00127 }
00128 
00129 
00130 /*-------------------------------------------------------------------------*/
00131 /*                              cvs id's                                   */
00132 
00133 #ifdef __sgi
00134 #pragma set woff 1174
00135 #endif
00136 
00137 #ifdef OSG_LINUX_ICC
00138 #pragma warning( disable : 177 )
00139 #endif
00140 
00141 namespace
00142 {
00143     static Char8 cvsid_cpp[] = "@(#)$Id: $";
00144     static Char8 cvsid_hpp[] = OSGFIELDDESCRIPTION_HEADER_CVSID;
00145 }
00146 

Generated on Thu Aug 25 04:04:49 2005 for OpenSG by  doxygen 1.4.3