osg::FieldDataTraits1< GLenum > Struct Template Reference
[Field Data Traits]

#include <OSGBaseFieldDataType.h>

Inheritance diagram for osg::FieldDataTraits1< GLenum >:
osg::FieldTraitsRecurseBase< GLenum > osg::FieldTraits

List of all members.

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 DataTypegetType (void)
static const Char8getSName (void)
static const Char8getMName (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 Char8getPName (void)

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits1< GLenum >

Definition at line 1179 of file OSGBaseFieldDataType.h.


Member Typedef Documentation

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.


Member Enumeration Documentation

anonymous enum
Enumerator:
StringConvertable 

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]
Enumerator:
ToStringConvertable 
FromStringConvertable 

Definition at line 69 of file OSGFieldDataType.h.

00070     {
00071         ToStringConvertable   = 0x01,
00072         FromStringConvertable = 0x02
00073     };


Member Function Documentation

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.

01190 { return "SFGLenum";          }

static const Char8* osg::FieldDataTraits1< GLenum >::getMName ( void   )  [inline, static]

Definition at line 1191 of file OSGBaseFieldDataType.h.

01191 { return "MFGLenum";          }

static GLenum osg::FieldDataTraits1< GLenum >::getDefault ( void   )  [inline, static]

Definition at line 1193 of file OSGBaseFieldDataType.h.

01193 { return 0;                   }

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.

01205     {
01206         outStr.assign(TypeTraits<GLenum>::putToString(inVal));
01207     }

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().

01229     {
01230         for(UInt32 i = 0; i < uiNumObjects; ++i)
01231         {
01232             copyToBin(pMem, pObjectStore[i]);
01233         }
01234     }

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.

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 75 of file OSGFieldDataType.h.

00075 { return "Field"; }


Member Data Documentation

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.


The documentation for this struct was generated from the following files:

Generated on 8 Feb 2010 for OpenSG by  doxygen 1.6.1