#include <OSGFieldContainerFieldDataType.h>
Inheritance diagram for osg::FieldTraitsRecurseMapper< FieldContainerPtr, false >:

Public Types | |
| enum | { bHasParent = 0x00 } |
| typedef osgIF< uiTest==1, const FieldContainerPtr, const FieldContainerPtr & >::_IRet | ArgumentType |
Static Public Member Functions | |
| static UInt32 | getBinSize (const FieldContainerPtr &) |
| static UInt32 | getBinSize (const FieldContainerPtr *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const FieldContainerPtr &pObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const FieldContainerPtr *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, FieldContainerPtr &pObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, FieldContainerPtr *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (FieldContainerPtr &outVal, const Char8 *&inVal) |
| static void | putToString (const FieldContainerPtr &inVal, std::string &outVal) |
| static bool | getFromString (FieldContainerPtr &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static const UInt32 | uiTest |
Definition at line 65 of file OSGFieldContainerFieldDataType.h.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Reimplemented from osg::FieldTraits. Definition at line 68 of file OSGFieldContainerFieldDataType.h. 00068 { bHasParent = 0x00 };
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 70 of file OSGFieldContainerFieldDataType.h. 00071 { 00072 return sizeof(UInt32); 00073 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 75 of file OSGFieldContainerFieldDataType.h. 00077 { 00078 return sizeof(UInt32) * uiNumObjects; 00079 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 81 of file OSGFieldContainerFieldDataType.h. References osg::FieldContainerPtrBase::getFieldContainerId(), osg::NullFC, and osg::BinaryDataHandler::putValue(). 00083 { 00084 UInt32 id; 00085 00086 if(pObject==NullFC) 00087 { 00088 // id=0 indicates an Null Ptr 00089 id = 0; 00090 } 00091 else 00092 { 00093 id = pObject.getFieldContainerId(); 00094 } 00095 00096 pMem.putValue(id); 00097 }
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 99 of file OSGFieldContainerFieldDataType.h. 00102 { 00103 for(UInt32 i = 0; i < uiNumObjects; i++) 00104 { 00105 copyToBin(pMem, pObjectStore[i]); 00106 } 00107 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 109 of file OSGFieldContainerFieldDataType.h. References osg::BinaryDataHandler::getValue(), and osg::NullFC. 00111 { 00112 UInt32 id; 00113 00114 pMem.getValue(id); 00115 00116 if(0 != id) 00117 { 00118 pObject = FieldContainerFactory::the()->getMappedContainer(id); 00119 } 00120 else 00121 { 00122 pObject = NullFC; 00123 } 00124 }
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 126 of file OSGFieldContainerFieldDataType.h. 00129 { 00130 for(UInt32 i = 0; i < uiNumObjects; i++) 00131 { 00132 copyFromBin(pMem, pObjectStore[i]); 00133 } 00134 }
|
|
||||||||||||
|
Definition at line 136 of file OSGFieldContainerFieldDataType.h.
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< FieldContainerPtr >. Definition at line 143 of file OSGFieldContainerFieldDataType.h. References osg::FieldContainerPtrBase::getBaseCPtr(). 00145 { 00146 typedef TypeTraits<UInt16> TypeTrait; 00147 00148 Char8 buffer[15]; 00149 00150 sprintf(buffer, "%p", inVal.getBaseCPtr()); 00151 00152 outVal = buffer; 00153 }
|
|
||||||||||||
|
Definition at line 209 of file OSGFieldDataType.h. 00211 { 00212 typedef FieldDataTraits<FieldTypeT> MappedTrait; 00213 00214 return MappedTrait::getFromString(outVal, inVal); 00215 }
|
|
|
Definition at line 75 of file OSGFieldDataType.h.
|
|
|
Definition at line 117 of file OSGFieldDataType.h. |
1.4.3