osg::FieldDataTraits< UInt32 > Struct Template Reference
[Field Data Traits]

#include <OSGSysFieldDataType.h>

Inheritance diagram for osg::FieldDataTraits< UInt32 >:
osg::FieldTraitsIntegralRecurseMapper< UInt32 > osg::FieldTraitsRecurseBase< UInt32 > osg::FieldTraits

List of all members.

Public Types

enum  { StringConvertable }
typedef FieldDataTraits< UInt32Self
enum  
typedef osgIF< uiTest==1,
const UInt32, const UInt32 & >
::_IRet 
ArgumentType
enum  { ToStringConvertable = 0x01, FromStringConvertable = 0x02 }

Static Public Member Functions

static DataTypegetType (void)
static const Char8getSName (void)
static const Char8getMName (void)
static UInt32 getDefault (void)
static bool getFromString (UInt32 &outVal, const Char8 *&inVal)
static void putToString (const UInt32 &inVal, std::string &outStr)
static UInt32 getBinSize (const UInt32 &)
static UInt32 getBinSize (const UInt32 *, UInt32 uiNumObjects)
static void copyToBin (BinaryDataHandler &pMem, const UInt32 &oObject)
static void copyToBin (BinaryDataHandler &pMem, const UInt32 *pObjectStore, UInt32 uiNumObjects)
static void copyFromBin (BinaryDataHandler &pMem, UInt32 &oObject)
static void copyFromBin (BinaryDataHandler &pMem, UInt32 *pObjectStore, UInt32 uiNumObjects)
static bool getFromString (UInt32 &outVal, const Char8 *inVal)
static const Char8getPName (void)

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits< UInt32 >

Definition at line 408 of file OSGSysFieldDataType.h.


Member Typedef Documentation

Definition at line 412 of file OSGSysFieldDataType.h.

typedef osgIF<uiTest == 1, const UInt32 , const UInt32 & >::_IRet osg::FieldTraitsRecurseBase< UInt32 >::ArgumentType [inherited]

Definition at line 122 of file OSGFieldDataType.h.


Member Enumeration Documentation

anonymous enum
Enumerator:
StringConvertable 

Definition at line 414 of file OSGSysFieldDataType.h.

00414                      { StringConvertable = Self::ToStringConvertable   | 
00415                                            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::FieldDataTraits< UInt32 >::getType ( void   )  [inline, static]

Definition at line 417 of file OSGSysFieldDataType.h.

00417 { return _type;               }

static const Char8* osg::FieldDataTraits< UInt32 >::getSName ( void   )  [inline, static]

Definition at line 419 of file OSGSysFieldDataType.h.

00419 { return "SFUInt32";          }

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

Definition at line 420 of file OSGSysFieldDataType.h.

00420 { return "MFUInt32";          }

static UInt32 osg::FieldDataTraits< UInt32 >::getDefault ( void   )  [inline, static]

Definition at line 422 of file OSGSysFieldDataType.h.

00422 { return 0;                   }

static bool osg::FieldDataTraits< UInt32 >::getFromString ( UInt32 outVal,
const Char8 *&  inVal 
) [inline, static]

Definition at line 424 of file OSGSysFieldDataType.h.

00426     {
00427         outVal = TypeTraits<UInt32>::getFromString(inVal);
00428         
00429         return false;
00430     }

static void osg::FieldDataTraits< UInt32 >::putToString ( const UInt32 inVal,
std::string &  outStr 
) [inline, static]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 432 of file OSGSysFieldDataType.h.

00434     {
00435         outStr.assign(TypeTraits<UInt32>::putToString(inVal));
00436     }

static UInt32 osg::FieldTraitsIntegralRecurseMapper< UInt32 >::getBinSize ( const UInt32 &   )  [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 365 of file OSGFieldDataType.h.

00366     {
00367         return sizeof(FieldTypeT);
00368     }

static UInt32 osg::FieldTraitsIntegralRecurseMapper< UInt32 >::getBinSize ( const UInt32 *  ,
UInt32  uiNumObjects 
) [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 370 of file OSGFieldDataType.h.

00372     {
00373         return sizeof(FieldTypeT) * uiNumObjects;
00374     }

static void osg::FieldTraitsIntegralRecurseMapper< UInt32 >::copyToBin ( BinaryDataHandler pMem,
const UInt32 &  oObject 
) [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 376 of file OSGFieldDataType.h.

00378     {
00379         pMem.putValue(oObject);
00380     }

static void osg::FieldTraitsIntegralRecurseMapper< UInt32 >::copyToBin ( BinaryDataHandler pMem,
const UInt32 *  pObjectStore,
UInt32  uiNumObjects 
) [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 382 of file OSGFieldDataType.h.

00385     {
00386         pMem.putValues(&pObjectStore[0], uiNumObjects);
00387     }

static void osg::FieldTraitsIntegralRecurseMapper< UInt32 >::copyFromBin ( BinaryDataHandler pMem,
UInt32 &  oObject 
) [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 389 of file OSGFieldDataType.h.

00391     {
00392         pMem.getValue(oObject);
00393     }

static void osg::FieldTraitsIntegralRecurseMapper< UInt32 >::copyFromBin ( BinaryDataHandler pMem,
UInt32 *  pObjectStore,
UInt32  uiNumObjects 
) [inline, static, inherited]

Reimplemented from osg::FieldTraitsRecurseBase< UInt32 >.

Definition at line 395 of file OSGFieldDataType.h.

00398     {
00399         pMem.getValues(&pObjectStore[0], uiNumObjects);
00400     }

static bool osg::FieldTraitsRecurseBase< UInt32 >::getFromString ( UInt32 &  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

Definition at line 411 of file OSGSysFieldDataType.h.

const UInt32 osg::FieldTraitsRecurseBase< UInt32 >::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