FBX C++ API Reference
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ElementContentAccessor Struct Reference

#include <fbxcolladaelement.h>

Class Description

A struct for convenient access to the content of common COLLADA element.

Definition at line 74 of file fbxcolladaelement.h.

+ Inheritance diagram for ElementContentAccessor:

Public Member Functions

 ElementContentAccessor ()
 
 ElementContentAccessor (xmlNode *pElement)
 
virtual ~ElementContentAccessor ()
 
template<typename TYPE >
bool GetNext (TYPE *pData)
 
template<typename TYPE >
int GetArray (TYPE *pArray, int pArraySize, int pSourceUnitOffset=0, int pSourceUnitValidCount=1, int pSourceUnitSize=1, int pDestUnitOffset=0, int pDestUnitValidCount=1, int pDestUnitSize=1, TYPE pDefaultValue=TYPE())
 

Public Attributes

xmlChar * mContent
 
const char * mPointer
 

Constructor & Destructor Documentation

◆ ElementContentAccessor() [1/2]

◆ ElementContentAccessor() [2/2]

ElementContentAccessor ( xmlNode *  pElement)

◆ ~ElementContentAccessor()

virtual ~ElementContentAccessor ( )
virtual

Member Function Documentation

◆ GetNext()

bool GetNext ( TYPE *  pData)
inline

Definition at line 81 of file fbxcolladaelement.h.

82  {
83  return FromString(pData, mPointer, &mPointer);
84  }
bool FromString(T *pDest, const char *pSourceBegin, const char **pSourceEnd=((void *) 0))
Convert part of the source string into destination type.

◆ GetArray()

int GetArray ( TYPE *  pArray,
int  pArraySize,
int  pSourceUnitOffset = 0,
int  pSourceUnitValidCount = 1,
int  pSourceUnitSize = 1,
int  pDestUnitOffset = 0,
int  pDestUnitValidCount = 1,
int  pDestUnitSize = 1,
TYPE  pDefaultValue = TYPE() 
)
inline

Definition at line 87 of file fbxcolladaelement.h.

91  {
92  if (pArray)
93  {
94  return FromStringToArray(mPointer, pArray, pArraySize,
95  pSourceUnitOffset, pSourceUnitValidCount, pSourceUnitSize,
96  pDestUnitOffset, pDestUnitValidCount, pDestUnitSize, pDefaultValue);
97  }
98  return 0;
99  }
int FromStringToArray(const char *pString, TYPE *pArray, int pArraySize, int pSourceUnitOffset, int pSourceValidUnitCount, int pSourceGroupSize, int pDestUnitOffset, int pDestValidUnitCount, int pDestGroupSize, TYPE pDefaultValue=TYPE())
Parse the string into an array.

Member Data Documentation

◆ mContent

xmlChar* mContent

Definition at line 101 of file fbxcolladaelement.h.

◆ mPointer

const char* mPointer

Definition at line 102 of file fbxcolladaelement.h.


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