Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

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

#include <OSGQTWindowDataFields.h>

Inheritance diagram for osg::FieldDataTraits< OSGQGLWidgetP >:

osg::FieldTraitsRecurseBase< OSGQGLWidgetP > osg::FieldTraits List of all members.

Public Types

enum  { StringConvertable = ToStringConvertable }
enum  { bHasParent = 0x00 }
typedef osgIF< uiTest==1,
const OSGQGLWidgetP, const
OSGQGLWidgetP & >::_IRet 
ArgumentType

Static Public Member Functions

static DataTypegetType (void)
static char * getSName (void)
static char * getMName (void)
static bool getFromString (OSGQGLWidgetP &widget, const Char8 *)
static void putToString (const OSGQGLWidgetP &, std::string &outStr)
static UInt32 getBinSize (const OSGQGLWidgetP &oObject)
static UInt32 getBinSize (const OSGQGLWidgetP *pObjectStore, UInt32 uiNumObjects)
static void copyToBin (BinaryDataHandler &pMem, const OSGQGLWidgetP &oObject)
static void copyToBin (BinaryDataHandler &pMem, const OSGQGLWidgetP *pObjectStore, UInt32 uiNumObjects)
static void copyFromBin (BinaryDataHandler &pMem, OSGQGLWidgetP &oObject)
static void copyFromBin (BinaryDataHandler &pMem, OSGQGLWidgetP *pObjectStore, UInt32 uiNumObjects)
static const Char8getPName (void)

Static Public Attributes

static DataType _type
static const UInt32 uiTest

Detailed Description

template<>
struct osg::FieldDataTraits< OSGQGLWidgetP >

Definition at line 71 of file OSGQTWindowDataFields.h.


Member Typedef Documentation

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

Definition at line 122 of file OSGFieldDataType.h.


Member Enumeration Documentation

anonymous enum
 

Enumerator:
StringConvertable 

Reimplemented from osg::FieldTraits.

Definition at line 76 of file OSGQTWindowDataFields.h.

anonymous enum
 

Enumerator:
bHasParent 

Definition at line 77 of file OSGQTWindowDataFields.h.

00077 { bHasParent        = 0x00 };


Member Function Documentation

static DataType& osg::FieldDataTraits< OSGQGLWidgetP >::getType void   )  [inline, static]
 

Definition at line 79 of file OSGQTWindowDataFields.h.

00079 { return _type;        }

static char* osg::FieldDataTraits< OSGQGLWidgetP >::getSName void   )  [inline, static]
 

Definition at line 81 of file OSGQTWindowDataFields.h.

00081 { return "SFOSGQGLWidgetP"; }

static char* osg::FieldDataTraits< OSGQGLWidgetP >::getMName void   )  [inline, static]
 

Definition at line 82 of file OSGQTWindowDataFields.h.

00082 { return "MFOSGQGLWidgetP"; }

static bool osg::FieldDataTraits< OSGQGLWidgetP >::getFromString OSGQGLWidgetP &  widget,
const Char8
[inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< OSGQGLWidgetP >.

Definition at line 84 of file OSGQTWindowDataFields.h.

00086     {
00087         widget=NULL;
00088         return true;
00089     }

static void osg::FieldDataTraits< OSGQGLWidgetP >::putToString const OSGQGLWidgetP &  ,
std::string &  outStr
[inline, static]
 

Reimplemented from osg::FieldTraitsRecurseBase< OSGQGLWidgetP >.

Definition at line 91 of file OSGQTWindowDataFields.h.

00093     {
00094         outStr.assign("OSGQGLWidgetP");
00095     }

static UInt32 osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::getBinSize const OSGQGLWidgetP &  oObject  )  [inline, static, inherited]
 

Definition at line 130 of file OSGFieldDataType.h.

00131     {
00132         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00133 
00134         std::string value;
00135 
00136         MappedTrait::putToString(oObject, value);
00137 
00138         return value.length() + 1 + sizeof(UInt32);
00139     }

static UInt32 osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::getBinSize const OSGQGLWidgetP *  pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 141 of file OSGFieldDataType.h.

00143     {
00144         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00145 
00146         UInt32 size = 0;
00147 
00148         for(UInt32 i = 0; i < uiNumObjects; ++i)
00149         {
00150             size += MappedTrait::getBinSize(pObjectStore[i]);
00151         }
00152 
00153         return size;
00154     }

static void osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::copyToBin BinaryDataHandler pMem,
const OSGQGLWidgetP &  oObject
[inline, static, inherited]
 

Definition at line 156 of file OSGFieldDataType.h.

00158     {
00159         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00160         
00161         std::string value;
00162 
00163         MappedTrait::putToString(oObject, value);
00164 
00165         pMem.putValue(value);
00166     }

static void osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::copyToBin BinaryDataHandler pMem,
const OSGQGLWidgetP *  pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 169 of file OSGFieldDataType.h.

00172     {
00173         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00174 
00175         // defaut: copy each element
00176         for(UInt32 i = 0; i < uiNumObjects; ++i)
00177         {
00178             MappedTrait::copyToBin(pMem, pObjectStore[i]);
00179         }
00180     }

static void osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::copyFromBin BinaryDataHandler pMem,
OSGQGLWidgetP &  oObject
[inline, static, inherited]
 

Definition at line 182 of file OSGFieldDataType.h.

00184     {
00185         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00186 
00187         const Char8 *c = NULL;
00188 
00189         std::string value;
00190 
00191         pMem.getValue(value);
00192         c = value.c_str();
00193         MappedTrait::getFromString(oObject, c);
00194     }

static void osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::copyFromBin BinaryDataHandler pMem,
OSGQGLWidgetP *  pObjectStore,
UInt32  uiNumObjects
[inline, static, inherited]
 

Definition at line 196 of file OSGFieldDataType.h.

00199     {
00200         typedef FieldDataTraits<FieldTypeT> MappedTrait;
00201 
00202         // defaut: copy each element
00203         for(UInt32 i = 0; i < uiNumObjects; ++i)
00204         {
00205             MappedTrait::copyFromBin(pMem, pObjectStore[i]);
00206         }
00207     }

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

Definition at line 74 of file OSGQTWindowDataFields.h.

const UInt32 osg::FieldTraitsRecurseBase< OSGQGLWidgetP >::uiTest [static, inherited]
 

Definition at line 117 of file OSGFieldDataType.h.


The documentation for this struct was generated from the following file:
Generated on Thu Aug 25 04:31:35 2005 for OpenSG by  doxygen 1.4.3