00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
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
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
00124
00125 FieldDescription::~FieldDescription(void)
00126 {
00127 }
00128
00129
00130
00131
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