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

#include <fbxsymbol.h>

Class Description

This class is to mark a string as symbol.

String Symbol only has its name. /remarks Each symbol is unique. That means there are no symbols which have the same name.

Definition at line 81 of file fbxsymbol.h.

Public Member Functions

 operator const char * () const
 Cast operator to const char* type. More...
 
bool IsEmpty () const
 Determine the symbol empty or not. More...
 
FbxStringSymboloperator= (const char *pName)
 Assignment operator. More...
 

Static Public Member Functions

static void AllocateGlobalStringSymbolMap ()
 Static function to allocate global string symbol map. More...
 
static void FreeGlobalStringSymbolMap ()
 Static function to deallocate global string symbol map. More...
 

Constructors and Destructor

 FbxStringSymbol ()
 Default constructor. More...
 
 FbxStringSymbol (const char *pName)
 Constructor. More...
 
 FbxStringSymbol (const FbxStringSymbol &pOther)
 Copy constructor. More...
 
 ~FbxStringSymbol ()
 Destructor. More...
 

Constructor & Destructor Documentation

◆ FbxStringSymbol() [1/3]

Default constructor.

◆ FbxStringSymbol() [2/3]

FbxStringSymbol ( const char *  pName)

Constructor.

Construct a symbol and add it to global symbol table.

Parameters
pNameSymbol name.

◆ FbxStringSymbol() [3/3]

FbxStringSymbol ( const FbxStringSymbol pOther)

Copy constructor.

◆ ~FbxStringSymbol()

Destructor.

Member Function Documentation

◆ operator const char *()

operator const char * ( ) const
inline

Cast operator to const char* type.

Definition at line 106 of file fbxsymbol.h.

106 { return mItem ? ((const char*) mItem->GetKey()) : NULL; }
#define NULL
Definition: fbxarch.h:210

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Determine the symbol empty or not.

Returns
true if empty. false otherwise.

Definition at line 112 of file fbxsymbol.h.

113  {
114  return !mItem || mItem->GetKey().IsEmpty();
115  }

◆ AllocateGlobalStringSymbolMap()

static void AllocateGlobalStringSymbolMap ( )
static

Static function to allocate global string symbol map.

◆ FreeGlobalStringSymbolMap()

static void FreeGlobalStringSymbolMap ( )
static

Static function to deallocate global string symbol map.

◆ operator=()

FbxStringSymbol& operator= ( const char *  pName)

Assignment operator.

Parameters
pNameThe symbol value.
Returns
The self after assignment.

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