FBVisitor - abstract base class to retrieve contents of a FBUnion.
Each operator () returns a different type value to the user.
#include <fbunion.h>
Public Member Functions | |
virtual void | operator() ()=0 |
Handle NULL returned value from the FBUnion. | |
virtual void | operator() (int &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (long long &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (unsigned long long &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (double &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (float &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (bool &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (FBTime const &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (const char *pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (HdlFBPlug const &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (FBVector2d const &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (FBVector3d const &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | operator() (FBVector4d const &pVal)=0 |
Handle returned value from the FBUnion. | |
virtual void | BeginMap ()=0 |
Handle returned map type stored in the FBUnion will be followed by N calls returning (const char *pName, FBUnion& pVal) returning the contents of the map item by item. | |
virtual void | operator() (const char *pName, FBUnion const &pVal)=0 |
Handle returned item stored in a map. | |
virtual void | EndMap ()=0 |
Indicate all map content is returned. | |
virtual void | BeginArray ()=0 |
Handle returned array type stored in the FBUnion will be followed by N calls returning (int Index, FBUnion) returning the contents of the array item by item. | |
virtual void | operator() (int pIndex, FBUnion const &pVal)=0 |
Handle returned item stored in an array. | |
virtual void | EndArray ()=0 |
Indicate all array content is returned. | |
virtual | ~FBVisitor () |
Virtual destructor to enable safe inheritance. |
virtual ~FBVisitor | ( | ) | [inline, virtual] |
virtual void operator() | ( | ) | [pure virtual] |
Handle NULL returned value from the FBUnion.
virtual void operator() | ( | int & | pVal | ) | [pure virtual] |
virtual void operator() | ( | long long & | pVal | ) | [pure virtual] |
virtual void operator() | ( | unsigned long long & | pVal | ) | [pure virtual] |
virtual void operator() | ( | double & | pVal | ) | [pure virtual] |
virtual void operator() | ( | float & | pVal | ) | [pure virtual] |
virtual void operator() | ( | bool & | pVal | ) | [pure virtual] |
virtual void operator() | ( | FBTime const & | pVal | ) | [pure virtual] |
virtual void operator() | ( | const char * | pVal | ) | [pure virtual] |
virtual void operator() | ( | HdlFBPlug const & | pVal | ) | [pure virtual] |
virtual void operator() | ( | FBVector2d const & | pVal | ) | [pure virtual] |
virtual void operator() | ( | FBVector3d const & | pVal | ) | [pure virtual] |
virtual void operator() | ( | FBVector4d const & | pVal | ) | [pure virtual] |
virtual void BeginMap | ( | ) | [pure virtual] |
virtual void operator() | ( | const char * | pName, |
FBUnion const & | pVal | ||
) | [pure virtual] |
Handle returned item stored in a map.
pName | - key name of the item stored in the map |
pVal | - value of the item stored in the map, The value of the item returned is another FBUnion which can be Visited recursively to discover it's content |
virtual void EndMap | ( | ) | [pure virtual] |
Indicate all map content is returned.
virtual void BeginArray | ( | ) | [pure virtual] |
Handle returned array type stored in the FBUnion will be followed by N calls returning (int Index, FBUnion) returning the contents of the array item by item.
finally EndArray() is called to indicate all the contents of the array has been returned.
virtual void operator() | ( | int | pIndex, |
FBUnion const & | pVal | ||
) | [pure virtual] |
Handle returned item stored in an array.
pIndex | - index of the item stored in the array |
pVal | - value of the item stored in the map, The value of the item returned is another FBUnion which can be Visited recursively to discover it's content |
virtual void EndArray | ( | ) | [pure virtual] |
Indicate all array content is returned.