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

#include <OSGVecFieldDataType.h>

Inheritance diagram for osg::osg::FieldDataTraits< Pnt3ub >:

osg::FieldTraitsRecurseVecStore2Base< ValueTypeT > osg::FieldTraitsRecurseVecStoreBase< ValueTypeT > osg::FieldTraits

List of all members.

Public Types

enum  { StringConvertable }
enum  { bHasParent = 0x01 }
typedef FieldDataTraits< Pnt3ubSelf
enum  { bHasParent = 0x00 }
enum  { bHasParent = 0x00 }
typedef osgIF< uiTest==1,
const ValueTypeT, const
ValueTypeT & >::_IRet 
ArgumentType
enum  { ToStringConvertable = 0x01, FromStringConvertable = 0x02 }

Static Public Member Functions

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

Static Public Attributes

static DataType _type
static const UInt32 uiTest = TypeTraits<ValueTypeT>::IsPOD == false


Detailed Description

template<>
struct osg::osg::FieldDataTraits< Pnt3ub >

Definition at line 1333 of file OSGVecFieldDataType.h.


Member Typedef Documentation

typedef FieldDataTraits<Pnt3ub> osg::osg::FieldDataTraits< Pnt3ub >::Self

Definition at line 1337 of file OSGVecFieldDataType.h.

template<class ValueTypeT>
typedef osgIF<uiTest == 1, const ValueTypeT , const ValueTypeT & >::_IRet osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::ArgumentType [inherited]

Definition at line 78 of file OSGVecFieldDataType.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
StringConvertable 

Definition at line 1340 of file OSGVecFieldDataType.h.

01340                      { StringConvertable = Self::ToStringConvertable   | 
01341                                            Self::FromStringConvertable };

anonymous enum

Enumerator:
bHasParent 

Definition at line 1343 of file OSGVecFieldDataType.h.

01343 { bHasParent        = 0x01                        };

template<class ValueTypeT>
anonymous enum [inherited]

Enumerator:
bHasParent 

Definition at line 139 of file OSGVecFieldDataType.h.

00139 { bHasParent = 0x00 };

template<class ValueTypeT>
anonymous enum [inherited]

Enumerator:
bHasParent 

Definition at line 70 of file OSGVecFieldDataType.h.

00070 { 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::osg::FieldDataTraits< Pnt3ub >::getType ( void   )  [inline, static]

Definition at line 1345 of file OSGVecFieldDataType.h.

01345 { return _type;               }

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

Definition at line 1347 of file OSGVecFieldDataType.h.

01347 { return "SFPnt3ub";           }

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

Definition at line 1348 of file OSGVecFieldDataType.h.

01348 { return "MFPnt3ub";           }

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

Definition at line 1350 of file OSGVecFieldDataType.h.

01350 { return Pnt3ub();             }

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

Definition at line 1352 of file OSGVecFieldDataType.h.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::setValueFromCString().

01354     {
01355         outVal.setValueFromCString(inVal);
01356         
01357         return true;
01358     }

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

Definition at line 1360 of file OSGVecFieldDataType.h.

References osg::PointInterface< ValueTypeT, StorageInterfaceT >::getValues().

01362     {
01363         typedef TypeTraits<Pnt3ub::ValueType> TypeTrait;
01364         
01365         outStr.assign(TypeTrait::putToString((inVal.getValues())[0]));
01366         outStr.append("  ");
01367         outStr.append(TypeTrait::putToString((inVal.getValues())[1]));
01368         outStr.append("  ");
01369         outStr.append(TypeTrait::putToString((inVal.getValues())[2]));
01370     }

template<class ValueTypeT>
static UInt32 osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::getBinSize ( const ValueTypeT &   )  [inline, static, inherited]

Definition at line 86 of file OSGVecFieldDataType.h.

00087     {
00088         return sizeof(ValueTypeT);
00089     }

template<class ValueTypeT>
static UInt32 osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::getBinSize ( const ValueTypeT *  ,
UInt32  uiNumObjects 
) [inline, static, inherited]

Definition at line 91 of file OSGVecFieldDataType.h.

00093     {
00094         return sizeof(ValueTypeT) * uiNumObjects;
00095     }

template<class ValueTypeT>
static void osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::copyToBin ( BinaryDataHandler pMem,
const ValueTypeT &  oObject 
) [inline, static, inherited]

Definition at line 97 of file OSGVecFieldDataType.h.

00099     {
00100         pMem.putValues(&oObject[0], ValueTypeT::_iSize);
00101     }

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

Definition at line 103 of file OSGVecFieldDataType.h.

00106     {
00107         pMem.putValues(&pObjectStore[0][0], ValueTypeT::_iSize*uiNumObjects);
00108     }

template<class ValueTypeT>
static void osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::copyFromBin ( BinaryDataHandler pMem,
ValueTypeT &  oObject 
) [inline, static, inherited]

Definition at line 110 of file OSGVecFieldDataType.h.

00112     {
00113         pMem.getValues(&oObject[0], ValueTypeT::_iSize);
00114     }

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

Definition at line 116 of file OSGVecFieldDataType.h.

00119     {
00120         pMem.getValues(&pObjectStore[0][0], ValueTypeT::_iSize*uiNumObjects);
00121     }

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::osg::FieldDataTraits< Pnt3ub >::_type [static]

Definition at line 1336 of file OSGVecFieldDataType.h.

template<class ValueTypeT>
const UInt32 osg::FieldTraitsRecurseVecStoreBase< ValueTypeT >::uiTest = TypeTraits<ValueTypeT>::IsPOD == false [static, inherited]

Definition at line 73 of file OSGVecFieldDataType.h.


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

Generated on Mon Mar 17 12:03:37 2008 for OpenSG by  doxygen 1.5.5