#include <OSGBaseFieldDataType.h>

Public Types | |
| enum | { StringConvertable } |
| typedef FieldDataTraits1< GLenum > | Self |
| enum | |
| typedef osgIF< uiTest==1, const GLenum, const GLenum & > ::_IRet | ArgumentType |
| enum | { ToStringConvertable = 0x01, FromStringConvertable = 0x02 } |
Static Public Member Functions | |
| static DataType & | getType (void) |
| static Char8 * | getSName (void) |
| static Char8 * | getMName (void) |
| static GLenum | getDefault (void) |
| static bool | getFromString (GLenum &outVal, const Char8 *&inVal) |
| static void | putToString (const GLenum &inVal, std::string &outStr) |
| static UInt32 | getBinSize (const GLenum &) |
| static UInt32 | getBinSize (const GLenum *, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const GLenum &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const GLenum *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, GLenum &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, GLenum *pObjectStore, UInt32 uiNumObjects) |
| static bool | getFromString (GLenum &outVal, const Char8 *inVal) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 1000 of file OSGBaseFieldDataType.h.
| typedef FieldDataTraits1<GLenum> osg::osg::FieldDataTraits1< GLenum >::Self |
Definition at line 1004 of file OSGBaseFieldDataType.h.
typedef osgIF<uiTest == 1, const GLenum , const GLenum & >::_IRet osg::FieldTraitsRecurseBase< GLenum >::ArgumentType [inherited] |
Definition at line 122 of file OSGFieldDataType.h.
| anonymous enum |
Definition at line 1006 of file OSGBaseFieldDataType.h.
01006 { StringConvertable = Self::ToStringConvertable | 01007 Self::FromStringConvertable };
anonymous enum [inherited] |
anonymous enum [inherited] |
Definition at line 69 of file OSGFieldDataType.h.
00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
| static DataType& osg::osg::FieldDataTraits1< GLenum >::getType | ( | void | ) | [inline, static] |
| static Char8* osg::osg::FieldDataTraits1< GLenum >::getSName | ( | void | ) | [inline, static] |
| static Char8* osg::osg::FieldDataTraits1< GLenum >::getMName | ( | void | ) | [inline, static] |
| static GLenum osg::osg::FieldDataTraits1< GLenum >::getDefault | ( | void | ) | [inline, static] |
| static bool osg::osg::FieldDataTraits1< GLenum >::getFromString | ( | GLenum & | outVal, | |
| const Char8 *& | inVal | |||
| ) | [inline, static] |
| static void osg::osg::FieldDataTraits1< GLenum >::putToString | ( | const GLenum & | inVal, | |
| std::string & | outStr | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1024 of file OSGBaseFieldDataType.h.
| static UInt32 osg::osg::FieldDataTraits1< GLenum >::getBinSize | ( | const GLenum & | ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1030 of file OSGBaseFieldDataType.h.
01031 { 01032 return sizeof(UInt32); 01033 }
| static UInt32 osg::osg::FieldDataTraits1< GLenum >::getBinSize | ( | const GLenum * | , | |
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1035 of file OSGBaseFieldDataType.h.
01037 { 01038 return sizeof(UInt32)*uiNumObjects; 01039 }
| static void osg::osg::FieldDataTraits1< GLenum >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLenum & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1041 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::putValue().
01043 { 01044 pMem.putValue ((UInt32)oObject); 01045 }
| static void osg::osg::FieldDataTraits1< GLenum >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLenum * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1047 of file OSGBaseFieldDataType.h.
References osg::FieldTraitsRecurseBase< FieldTypeT >::copyToBin().
01050 { 01051 for(UInt32 i = 0; i < uiNumObjects; ++i) 01052 { 01053 copyToBin(pMem, pObjectStore[i]); 01054 } 01055 }
| static void osg::osg::FieldDataTraits1< GLenum >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLenum & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1057 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::getValue().
01059 { 01060 UInt32 val; 01061 pMem.getValue (val); 01062 oObject = val; 01063 }
| static void osg::osg::FieldDataTraits1< GLenum >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLenum * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1065 of file OSGBaseFieldDataType.h.
References osg::FieldTraitsRecurseBase< FieldTypeT >::copyFromBin().
01068 { 01069 for(UInt32 i = 0; i < uiNumObjects; ++i) 01070 { 01071 copyFromBin(pMem, pObjectStore[i]); 01072 } 01073 }
| static bool osg::FieldTraitsRecurseBase< GLenum >::getFromString | ( | GLenum & | outVal, | |
| const Char8 * | inVal | |||
| ) | [inline, static, inherited] |
Definition at line 209 of file OSGFieldDataType.h.
00211 { 00212 typedef FieldDataTraits<FieldTypeT> MappedTrait; 00213 00214 return MappedTrait::getFromString(outVal, inVal); 00215 }
| static const Char8* osg::FieldTraits::getPName | ( | void | ) | [inline, static, inherited] |
Definition at line 1003 of file OSGBaseFieldDataType.h.
const UInt32 osg::FieldTraitsRecurseBase< GLenum >::uiTest [static, inherited] |
Definition at line 117 of file OSGFieldDataType.h.
1.5.5