#include <OSGScanParseFieldTypeMapper.h>

Public Member Functions | |
Constructors | |
| ScanParseFieldTypeMapper (void) | |
Destructor | |
| virtual | ~ScanParseFieldTypeMapper (void) |
Set | |
| void | setExtIntMapping (BuildInFieldTypes eBuildInType, UInt32 uiMappedType) |
| void | setIntExtMapping (UInt32 uiMappedType, BuildInFieldTypes eBuildInType) |
Map | |
| virtual Int32 | mapExtIntFieldType (const Char8 *szFieldname, const Int32 iFieldTypeId) |
| virtual Int32 | mapIntExtFieldType (const Char8 *szFieldname, const Int32 iFieldTypeId) |
Protected Types | |
| typedef BaseT | Inherited |
| typedef Inherited::BuildInFieldType | BuildInFieldTypes |
| typedef std::map < BuildInFieldTypes, UInt32 > | IntExtMap |
| typedef std::map< UInt32, BuildInFieldTypes > | ExtIntMap |
Protected Attributes | |
Member | |
| IntExtMap | _mIntExt |
| ExtIntMap | _mExtInt |
Private Member Functions | |
| ScanParseFieldTypeMapper (const ScanParseFieldTypeMapper &source) | |
| prohibit default function (move to 'public' if needed) | |
| void | operator= (const ScanParseFieldTypeMapper &source) |
| prohibit default function (move to 'public' if needed) | |
Definition at line 54 of file OSGScanParseFieldTypeMapper.h.
typedef BaseT osg::ScanParseFieldTypeMapper< BaseT >::Inherited [protected] |
Reimplemented in osg::OSGLoader, and osg::VRMLNodeFactory< osg::ScanParseFieldTypeMapper< osg::ScanParseSkel > >.
Definition at line 59 of file OSGScanParseFieldTypeMapper.h.
typedef Inherited::BuildInFieldType osg::ScanParseFieldTypeMapper< BaseT >::BuildInFieldTypes [protected] |
Definition at line 61 of file OSGScanParseFieldTypeMapper.h.
typedef std::map<BuildInFieldTypes, UInt32 > osg::ScanParseFieldTypeMapper< BaseT >::IntExtMap [protected] |
Definition at line 64 of file OSGScanParseFieldTypeMapper.h.
typedef std::map<UInt32, BuildInFieldTypes> osg::ScanParseFieldTypeMapper< BaseT >::ExtIntMap [protected] |
Definition at line 66 of file OSGScanParseFieldTypeMapper.h.
| osg::ScanParseFieldTypeMapper< BaseT >::ScanParseFieldTypeMapper | ( | void | ) | [inline] |
Definition at line 52 of file OSGScanParseFieldTypeMapper.inl.
00052 : 00053 Inherited(), 00054 _mIntExt (), 00055 _mExtInt () 00056 00057 { 00058 Inherited::setMapTypeIds(true); 00059 }
| osg::ScanParseFieldTypeMapper< BaseT >::~ScanParseFieldTypeMapper | ( | void | ) | [inline, virtual] |
| osg::ScanParseFieldTypeMapper< BaseT >::ScanParseFieldTypeMapper | ( | const ScanParseFieldTypeMapper< BaseT > & | source | ) | [private] |
| void osg::ScanParseFieldTypeMapper< BaseT >::setExtIntMapping | ( | BuildInFieldTypes | eBuildInType, | |
| UInt32 | uiMappedType | |||
| ) | [inline] |
Definition at line 81 of file OSGScanParseFieldTypeMapper.inl.
References osg::ScanParseFieldTypeMapper< BaseT >::_mIntExt.
00084 { 00085 _mIntExt[eBuildInType] = uiMappedType; 00086 }
| void osg::ScanParseFieldTypeMapper< BaseT >::setIntExtMapping | ( | UInt32 | uiMappedType, | |
| BuildInFieldTypes | eBuildInType | |||
| ) | [inline] |
Definition at line 73 of file OSGScanParseFieldTypeMapper.inl.
References osg::ScanParseFieldTypeMapper< BaseT >::_mExtInt.
Referenced by osg::OSGLoader::initFieldTypeMapper().
00076 { 00077 _mExtInt[uiMappedType] = eBuildInType; 00078 }
| Int32 osg::ScanParseFieldTypeMapper< BaseT >::mapExtIntFieldType | ( | const Char8 * | szFieldname, | |
| const Int32 | iFieldTypeId | |||
| ) | [inline, virtual] |
Reimplemented in osg::OSGLoader.
Definition at line 92 of file OSGScanParseFieldTypeMapper.inl.
References osg::ScanParseFieldTypeMapper< BaseT >::_mExtInt.
Referenced by osg::OSGLoader::mapExtIntFieldType().
00095 { 00096 typename ExtIntMap::iterator gMIt = _mExtInt.find(iFieldTypeId); 00097 00098 if(gMIt != _mExtInt.end()) 00099 { 00100 return gMIt->second; 00101 } 00102 else 00103 { 00104 return -iFieldTypeId; 00105 } 00106 }
| Int32 osg::ScanParseFieldTypeMapper< BaseT >::mapIntExtFieldType | ( | const Char8 * | szFieldname, | |
| const Int32 | iFieldTypeId | |||
| ) | [inline, virtual] |
Definition at line 109 of file OSGScanParseFieldTypeMapper.inl.
References osg::ScanParseFieldTypeMapper< BaseT >::_mIntExt.
00112 { 00113 typename IntExtMap::iterator gMIt = _mIntExt.find( 00114 (BuildInFieldTypes) iFieldTypeId); 00115 00116 if(gMIt != _mIntExt.end()) 00117 { 00118 return gMIt->second; 00119 } 00120 else 00121 { 00122 return -iFieldTypeId; 00123 } 00124 }
| void osg::ScanParseFieldTypeMapper< BaseT >::operator= | ( | const ScanParseFieldTypeMapper< BaseT > & | source | ) | [private] |
IntExtMap osg::ScanParseFieldTypeMapper< BaseT >::_mIntExt [protected] |
Definition at line 114 of file OSGScanParseFieldTypeMapper.h.
Referenced by osg::ScanParseFieldTypeMapper< BaseT >::mapIntExtFieldType(), and osg::ScanParseFieldTypeMapper< BaseT >::setExtIntMapping().
ExtIntMap osg::ScanParseFieldTypeMapper< BaseT >::_mExtInt [protected] |
Definition at line 115 of file OSGScanParseFieldTypeMapper.h.
Referenced by osg::ScanParseFieldTypeMapper< BaseT >::mapExtIntFieldType(), and osg::ScanParseFieldTypeMapper< BaseT >::setIntExtMapping().
1.5.5