#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 const Char8 * | getSName (void) |
| static const 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 1179 of file OSGBaseFieldDataType.h.
| typedef FieldDataTraits1<GLenum> osg::FieldDataTraits1< GLenum >::Self |
Definition at line 1183 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 1185 of file OSGBaseFieldDataType.h.
01185 { StringConvertable = Self::ToStringConvertable | 01186 Self::FromStringConvertable };
anonymous enum [inherited] |
Definition at line 114 of file OSGFieldDataType.h.
00114 { bHasParent = 0x00 };
anonymous enum [inherited] |
Definition at line 69 of file OSGFieldDataType.h.
00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
| static DataType& osg::FieldDataTraits1< GLenum >::getType | ( | void | ) | [inline, static] |
Definition at line 1188 of file OSGBaseFieldDataType.h.
01188 { return _type; }
| static const Char8* osg::FieldDataTraits1< GLenum >::getSName | ( | void | ) | [inline, static] |
Definition at line 1190 of file OSGBaseFieldDataType.h.
| static const Char8* osg::FieldDataTraits1< GLenum >::getMName | ( | void | ) | [inline, static] |
Definition at line 1191 of file OSGBaseFieldDataType.h.
| static GLenum osg::FieldDataTraits1< GLenum >::getDefault | ( | void | ) | [inline, static] |
Definition at line 1193 of file OSGBaseFieldDataType.h.
| static bool osg::FieldDataTraits1< GLenum >::getFromString | ( | GLenum & | outVal, | |
| const Char8 *& | inVal | |||
| ) | [inline, static] |
Definition at line 1195 of file OSGBaseFieldDataType.h.
01197 { 01198 outVal = TypeTraits<GLenum>::getFromString(inVal); 01199 01200 return false; 01201 }
| static void osg::FieldDataTraits1< GLenum >::putToString | ( | const GLenum & | inVal, | |
| std::string & | outStr | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1203 of file OSGBaseFieldDataType.h.
| static UInt32 osg::FieldDataTraits1< GLenum >::getBinSize | ( | const GLenum & | ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1209 of file OSGBaseFieldDataType.h.
01210 { 01211 return sizeof(UInt32); 01212 }
| static UInt32 osg::FieldDataTraits1< GLenum >::getBinSize | ( | const GLenum * | , | |
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1214 of file OSGBaseFieldDataType.h.
01216 { 01217 return sizeof(UInt32)*uiNumObjects; 01218 }
| static void osg::FieldDataTraits1< GLenum >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLenum & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1220 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::putValue().
01222 { 01223 pMem.putValue (UInt32(oObject)); 01224 }
| static void osg::FieldDataTraits1< GLenum >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLenum * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1226 of file OSGBaseFieldDataType.h.
References osg::FieldTraitsRecurseBase< FieldTypeT >::copyToBin().
| static void osg::FieldDataTraits1< GLenum >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLenum & | oObject | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1236 of file OSGBaseFieldDataType.h.
References osg::BinaryDataHandler::getValue().
01238 { 01239 UInt32 val; 01240 pMem.getValue (val); 01241 oObject = val; 01242 }
| static void osg::FieldDataTraits1< GLenum >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLenum * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase< GLenum >.
Definition at line 1244 of file OSGBaseFieldDataType.h.
References osg::FieldTraitsRecurseBase< FieldTypeT >::copyFromBin().
01247 { 01248 for(UInt32 i = 0; i < uiNumObjects; ++i) 01249 { 01250 copyFromBin(pMem, pObjectStore[i]); 01251 } 01252 }
| static bool osg::FieldTraitsRecurseBase< GLenum >::getFromString | ( | GLenum & | outVal, | |
| const Char8 * | inVal | |||
| ) | [inline, static, inherited] |
Definition at line 209 of file OSGFieldDataType.h.
| static const Char8* osg::FieldTraits::getPName | ( | void | ) | [inline, static, inherited] |
Definition at line 75 of file OSGFieldDataType.h.
DataType osg::FieldDataTraits1< GLenum >::_type [static] |
Definition at line 1182 of file OSGBaseFieldDataType.h.
const UInt32 osg::FieldTraitsRecurseBase< GLenum >::uiTest [static, inherited] |
Definition at line 117 of file OSGFieldDataType.h.
1.6.1