#include <OSGBaseFieldDataType.h>
Inheritance diagram for osg::FieldDataTraits< std::string >:

Public Types | |
| enum | { StringConvertable } |
| typedef osgIF< uiTest==1, const std::string, const std::string & >::_IRet | ArgumentType |
| enum | { ToStringConvertable = 0x01, FromStringConvertable = 0x02 } |
Static Public Member Functions | |
| static DataType & | getType (void) |
| static const Char8 * | getSName (void) |
| static const Char8 * | getMName (void) |
| static std::string | getDefault (void) |
| static bool | getFromString (std::string &target, const Char8 *&source) |
| static void | putToString (const std::string &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const std::string &oObject) |
| static UInt32 | getBinSize (const std::string *pObjectStore, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const std::string &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const std::string *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, std::string &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, std::string *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (std::string &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 433 of file OSGBaseFieldDataType.h.
|
|
Definition at line 122 of file OSGFieldDataType.h. |
|
|
Definition at line 438 of file OSGBaseFieldDataType.h. 00438 { StringConvertable = ToStringConvertable | 00439 FromStringConvertable };
|
|
|
Definition at line 69 of file OSGFieldDataType.h. 00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
|
|
|
Definition at line 441 of file OSGBaseFieldDataType.h. 00441 { return _type; }
|
|
|
Definition at line 443 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 445 of file OSGBaseFieldDataType.h.
|
|
|
Definition at line 447 of file OSGBaseFieldDataType.h.
|
|
||||||||||||
|
Definition at line 449 of file OSGBaseFieldDataType.h. 00451 { 00452 target.assign(source); 00453 00454 if(source != NULL) 00455 { 00456 source += strlen(source); 00457 } 00458 00459 return true; 00460 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 462 of file OSGBaseFieldDataType.h.
|
|
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 471 of file OSGBaseFieldDataType.h. 00472 { 00473 return oObject.length() + 1 + sizeof(UInt32); 00474 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 476 of file OSGBaseFieldDataType.h. References osg::FieldTraitsRecurseBase< FieldTypeT >::getBinSize(). 00478 { 00479 UInt32 size=0; 00480 00481 for(UInt32 i = 0; i < uiNumObjects; ++i) 00482 { 00483 size += getBinSize(pObjectStore[i]); 00484 } 00485 00486 return size; 00487 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 490 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::putValue().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 496 of file OSGBaseFieldDataType.h. References osg::FieldTraitsRecurseBase< FieldTypeT >::copyToBin(). 00499 { 00500 for(UInt32 i=0; i < uiNumObjects; ++i) 00501 { 00502 copyToBin(pMem, pObjectStore[i]); 00503 } 00504 }
|
|
||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 506 of file OSGBaseFieldDataType.h. References osg::BinaryDataHandler::getValue().
|
|
||||||||||||||||
|
Reimplemented from osg::FieldTraitsRecurseBase< std::string >. Definition at line 512 of file OSGBaseFieldDataType.h. References osg::FieldTraitsRecurseBase< FieldTypeT >::copyFromBin(). 00515 { 00516 for(UInt32 i = 0; i < uiNumObjects; ++i) 00517 { 00518 copyFromBin(pMem, pObjectStore[i]); 00519 } 00520 }
|
|
||||||||||||
|
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