#include <OSGXWindowDataFields.h>

Public Types | |
| enum | { StringConvertable = ToStringConvertable } |
| enum | { bHasParent = 0x00 } |
| enum | |
| typedef osgIF< uiTest==1, const GLXContext, const GLXContext & >::_IRet | ArgumentType |
| enum | { ToStringConvertable = 0x01, FromStringConvertable = 0x02 } |
Static Public Member Functions | |
| static DataType & | getType (void) |
| static char * | getSName (void) |
| static char * | getMName (void) |
| static bool | getFromString (GLXContext &context, const Char8 *) |
| static void | putToString (const GLXContext &, std::string &outStr) |
| static UInt32 | getBinSize (const GLXContext &oObject) |
| static UInt32 | getBinSize (const GLXContext *pObjectStore, UInt32 uiNumObjects) |
| static void | copyToBin (BinaryDataHandler &pMem, const GLXContext &oObject) |
| static void | copyToBin (BinaryDataHandler &pMem, const GLXContext *pObjectStore, UInt32 uiNumObjects) |
| static void | copyFromBin (BinaryDataHandler &pMem, GLXContext &oObject) |
| static void | copyFromBin (BinaryDataHandler &pMem, GLXContext *pObjectStore, UInt32 uiNumObjects) |
| static const Char8 * | getPName (void) |
Static Public Attributes | |
| static DataType | _type |
| static const UInt32 | uiTest |
Definition at line 146 of file OSGXWindowDataFields.h.
typedef osgIF<uiTest == 1, const GLXContext , const GLXContext & >::_IRet osg::FieldTraitsRecurseBase1< GLXContext >::ArgumentType [inherited] |
Definition at line 247 of file OSGFieldDataType.h.
| anonymous enum |
Definition at line 151 of file OSGXWindowDataFields.h.
00151 { StringConvertable = ToStringConvertable };
| anonymous enum |
anonymous enum [inherited] |
anonymous enum [inherited] |
Definition at line 69 of file OSGFieldDataType.h.
00070 { 00071 ToStringConvertable = 0x01, 00072 FromStringConvertable = 0x02 00073 };
| static DataType& osg::osg::FieldDataTraits1< GLXContext >::getType | ( | void | ) | [inline, static] |
| static char* osg::osg::FieldDataTraits1< GLXContext >::getSName | ( | void | ) | [inline, static] |
| static char* osg::osg::FieldDataTraits1< GLXContext >::getMName | ( | void | ) | [inline, static] |
| static bool osg::osg::FieldDataTraits1< GLXContext >::getFromString | ( | GLXContext & | context, | |
| const Char8 * | ||||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase1< GLXContext >.
Definition at line 159 of file OSGXWindowDataFields.h.
| static void osg::osg::FieldDataTraits1< GLXContext >::putToString | ( | const GLXContext & | , | |
| std::string & | outStr | |||
| ) | [inline, static] |
Reimplemented from osg::FieldTraitsRecurseBase1< GLXContext >.
Definition at line 166 of file OSGXWindowDataFields.h.
| static UInt32 osg::FieldTraitsRecurseBase1< GLXContext >::getBinSize | ( | const GLXContext & | oObject | ) | [inline, static, inherited] |
Definition at line 255 of file OSGFieldDataType.h.
00256 { 00257 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00258 00259 std::string value; 00260 00261 MappedTrait::putToString(oObject, value); 00262 00263 return value.length() + 1 + sizeof(UInt32); 00264 }
| static UInt32 osg::FieldTraitsRecurseBase1< GLXContext >::getBinSize | ( | const GLXContext * | pObjectStore, | |
| UInt32 | uiNumObjects | |||
| ) | [inline, static, inherited] |
Definition at line 266 of file OSGFieldDataType.h.
00268 { 00269 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00270 00271 UInt32 size = 0; 00272 00273 for(UInt32 i = 0; i < uiNumObjects; ++i) 00274 { 00275 size += MappedTrait::getBinSize(pObjectStore[i]); 00276 } 00277 00278 return size; 00279 }
| static void osg::FieldTraitsRecurseBase1< GLXContext >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLXContext & | oObject | |||
| ) | [inline, static, inherited] |
Definition at line 281 of file OSGFieldDataType.h.
References osg::BinaryDataHandler::putValue().
00283 { 00284 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00285 00286 std::string value; 00287 00288 MappedTrait::putToString(oObject, value); 00289 00290 pMem.putValue(value); 00291 }
| static void osg::FieldTraitsRecurseBase1< GLXContext >::copyToBin | ( | BinaryDataHandler & | pMem, | |
| const GLXContext * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static, inherited] |
Definition at line 294 of file OSGFieldDataType.h.
00297 { 00298 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00299 00300 // defaut: copy each element 00301 for(UInt32 i = 0; i < uiNumObjects; ++i) 00302 { 00303 MappedTrait::copyToBin(pMem, pObjectStore[i]); 00304 } 00305 }
| static void osg::FieldTraitsRecurseBase1< GLXContext >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLXContext & | oObject | |||
| ) | [inline, static, inherited] |
Definition at line 307 of file OSGFieldDataType.h.
References osg::BinaryDataHandler::getValue().
00309 { 00310 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00311 00312 const Char8 *c = NULL; 00313 00314 std::string value; 00315 00316 pMem.getValue(value); 00317 c = value.c_str(); 00318 MappedTrait::getFromString(oObject, c); 00319 }
| static void osg::FieldTraitsRecurseBase1< GLXContext >::copyFromBin | ( | BinaryDataHandler & | pMem, | |
| GLXContext * | pObjectStore, | |||
| UInt32 | uiNumObjects | |||
| ) | [inline, static, inherited] |
Definition at line 321 of file OSGFieldDataType.h.
00324 { 00325 typedef FieldDataTraits1<FieldTypeT> MappedTrait; 00326 00327 // defaut: copy each element 00328 for(UInt32 i = 0; i < uiNumObjects; ++i) 00329 { 00330 MappedTrait::copyFromBin(pMem, pObjectStore[i]); 00331 } 00332 }
| static const Char8* osg::FieldTraits::getPName | ( | void | ) | [inline, static, inherited] |
Definition at line 149 of file OSGXWindowDataFields.h.
const UInt32 osg::FieldTraitsRecurseBase1< GLXContext >::uiTest [static, inherited] |
Definition at line 242 of file OSGFieldDataType.h.
1.5.5