FBX C++ API Reference
fbxevent.h File Reference

Classes

class  FbxEventBase
 FBX SDK event base class. More...
 
class  FbxEvent< T >
 FBX event class, derived from FbxEventBase, and it contains a type ID for event. More...
 

Macros

#define FBXSDK_EVENT_DECLARE(Class)
 
#define FBXSDK_EVENT_TYPE_DECLARE(Class, FBXType)
 
#define FBXSDK_EVENT_TEMPLATE_HEADER(ClassName, TemplateName)
 
#define FBXSDK_EVENT_TEMPLATE_FOOTER()   };
 

Macro Definition Documentation

◆ FBXSDK_EVENT_DECLARE

#define FBXSDK_EVENT_DECLARE (   Class)
Value:
public: virtual const char* GetEventName() const { return FbxEventName(); } \
private: static const char* FbxEventName() { return #Class; } \
friend class FbxEvent<Class>; \
FBX event class, derived from FbxEventBase, and it contains a type ID for event.
Definition: fbxevent.h:134

Definition at line 68 of file fbxevent.h.

◆ FBXSDK_EVENT_TYPE_DECLARE

#define FBXSDK_EVENT_TYPE_DECLARE (   Class,
  FBXType 
)
Value:
public: virtual const char* GetEventName() const { return FbxEventName(); } \
private: \
static const char* FbxEventName() { \
static FbxString lEventName = FbxString(#Class) + FbxString("<") + \
FbxGetDataTypeFromEnum(FbxTypeOf(*((const FBXType *)0))).GetName() + ">"; \
\
return lEventName.Buffer(); \
} \
friend class FbxEvent< Class<FBXType> >;
Utility class to manipulate strings.
Definition: fbxstring.h:66
EFbxType FbxTypeOf(const FbxChar &)
char * Buffer()
Non-const buffer access.
virtual const char * GetEventName() const =0
Force events to give us a name.
FBX event class, derived from FbxEventBase, and it contains a type ID for event.
Definition: fbxevent.h:134

Definition at line 77 of file fbxevent.h.

◆ FBXSDK_EVENT_TEMPLATE_HEADER

#define FBXSDK_EVENT_TEMPLATE_HEADER (   ClassName,
  TemplateName 
)
Value:
template < class TemplateName, const char* T > \
class ClassName: public FbxEvent< ClassName <TemplateName,T> >\
{\
public: virtual const char* GetEventName() const {return FbxEventName();}\
private: static const char* FbxEventName() {\
static FbxString lEventName = (FbxString(#ClassName) +"<"+ FbxString(T) +">");\
return lEventName.Buffer();\
}\
friend class FbxEvent< ClassName<TemplateName, T> >;
Utility class to manipulate strings.
Definition: fbxstring.h:66
char * Buffer()
Non-const buffer access.
virtual const char * GetEventName() const =0
Force events to give us a name.
FBX event class, derived from FbxEventBase, and it contains a type ID for event.
Definition: fbxevent.h:134

Definition at line 97 of file fbxevent.h.

◆ FBXSDK_EVENT_TEMPLATE_FOOTER

#define FBXSDK_EVENT_TEMPLATE_FOOTER ( )    };

Definition at line 111 of file fbxevent.h.

Go to the source code of this file.