Public Member Functions

FbxConstMemberFuncEventHandler< EventType, ListenerType > Class Template Reference

Search for all occurrences

Detailed Description

template<typename EventType, typename ListenerType>
class FbxConstMemberFuncEventHandler< EventType, ListenerType >

Definition at line 96 of file fbxeventhandler.h.

#include <fbxeventhandler.h>

Inheritance diagram for FbxConstMemberFuncEventHandler< EventType, ListenerType >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 FbxConstMemberFuncEventHandler (ListenerType *pListenerInstance, CallbackFnc pFunction)
virtual int GetHandlerEventType ()
 Get event type of current handler.
virtual void FunctionCall (const FbxEventBase &pEvent)
 Call function that process event data.
virtual FbxListenerGetListener ()
 Get listener of current handler.

Constructor & Destructor Documentation

FbxConstMemberFuncEventHandler ( ListenerType *  pListenerInstance,
CallbackFnc  pFunction 
) [inline]

Definition at line 101 of file fbxeventhandler.h.

: mListener(pListenerInstance), mFunction(pFunction){}

Member Function Documentation

virtual int GetHandlerEventType ( ) [inline, virtual]

Get event type of current handler.

Returns:
The type ID of event.

Implements FbxEventHandler.

Definition at line 102 of file fbxeventhandler.h.

{ return EventType::GetStaticTypeId(); }    
virtual void FunctionCall ( const FbxEventBase pEvent) [inline, virtual]

Call function that process event data.

Parameters:
pEventspecify the event type. pEvent could be a specific class which derived from FbxEventBase.
See also:
FbxEventBase

Implements FbxEventHandler.

Definition at line 103 of file fbxeventhandler.h.

{ (*mListener.*mFunction)(reinterpret_cast<const EventType*>(&pEvent)); }
virtual FbxListener* GetListener ( ) [inline, virtual]

Get listener of current handler.

Returns:
A pointer to the listener object.

Implements FbxEventHandler.

Definition at line 104 of file fbxeventhandler.h.

{ return mListener; }

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