VR-Forces 4.2 Class Documentation
List of all members | Public Member Functions | Protected Attributes
DtEventHandlerFactory Class Reference

The event handler factory will map event handler types to create functions to allow for the creation of event handlers. More...

Public Member Functions

 DtEventHandlerFactory (DtEventController *controller)
virtual ~DtEventHandlerFactory ()
virtual void addHandlerCreate (int type, DtHandlerCreate fcn, void *usr=NULL)
 Accessors to add/remove callbacks for handler types.
virtual void removeHandlerCreate (int type)
virtual DtEventHandlercreateHandler (int type)
 This routine will create the handler in question.
virtual DtEventControllereventController () const
 Returns the controller with this factory.

Protected Attributes

QHash< int, DtHandlerCreateInfomyHandlers
DtEventControllermyEventController

Detailed Description

The event handler factory will map event handler types to create functions to allow for the creation of event handlers.

Constructor & Destructor Documentation

DtEventHandlerFactory::DtEventHandlerFactory ( DtEventController controller)
virtual DtEventHandlerFactory::~DtEventHandlerFactory ( )
virtual

Member Function Documentation

virtual void DtEventHandlerFactory::addHandlerCreate ( int  type,
DtHandlerCreate  fcn,
void *  usr = NULL 
)
virtual

Accessors to add/remove callbacks for handler types.

Note that the add will also act as a replace if the handler creation routine exists

virtual void DtEventHandlerFactory::removeHandlerCreate ( int  type)
virtual
virtual DtEventHandler* DtEventHandlerFactory::createHandler ( int  type)
virtual

This routine will create the handler in question.

virtual DtEventController* DtEventHandlerFactory::eventController ( ) const
virtual

Returns the controller with this factory.

Member Data Documentation

QHash<int, DtHandlerCreateInfo> DtEventHandlerFactory::myHandlers
protected
DtEventController* DtEventHandlerFactory::myEventController
protected

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

Document ID: Generated on Sun Nov 24 19:49:21 EST 2013 from SVN revision 133924
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)