KFbxMemberFuncEventHandler< EventType, ListenerType > Class Template Reference


Detailed Description

template<typename EventType, typename ListenerType>
class kfbxevents::KFbxMemberFuncEventHandler< EventType, ListenerType >

Definition at line 121 of file kfbxeventhandler.h.

#include <kfbxeventhandler.h>

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

List of all members.

Public Member Functions

  KFbxMemberFuncEventHandler (ListenerType *pListenerInstance, CBFunction pFunc)
virtual int  GetHandlerEventType ()
  Get event type of current handler.
virtual void  FunctionCall (const KFbxEventBase &pEvent)
  call callback function to process event data.
virtual KFbxListener GetListener ()
  Get listener of current handler.

Constructor & Destructor Documentation

KFbxMemberFuncEventHandler ( ListenerType *  pListenerInstance,
CBFunction  pFunc 
) [inline]

Definition at line 128 of file kfbxeventhandler.h.

                                                                                      :
            mListener(pListenerInstance),
            mFunc(pFunc)
        {
        }

Member Function Documentation

virtual int GetHandlerEventType ( ) [inline, virtual]

Get event type of current handler.

Returns:
the type ID of event.

Implements KFbxEventHandler.

Definition at line 135 of file kfbxeventhandler.h.

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

call callback function to process event data.

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

Implements KFbxEventHandler.

Definition at line 136 of file kfbxeventhandler.h.

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

Get listener of current handler.

Returns:
listener

Implements KFbxEventHandler.

Definition at line 137 of file kfbxeventhandler.h.

{ return mListener;}

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