Vault  4.1
Public Member Functions
VMessageHandlerFactory Class Reference

VMessageHandlerFactory defines the interface for factory objects that know how to create the appropriate type of concrete VMessageHandler subclass for a particular message ID or set of message IDs. More...

#include <vmessagehandler.h>

List of all members.

Public Member Functions

virtual VMessageHandlercreateHandler (VMessagePtr m, VServer *server, VClientSessionPtr session, VSocketThread *thread)=0
 Instantiates a new message handler for the specified message's ID; must be overridden by the concrete subclass.

Detailed Description

VMessageHandlerFactory defines the interface for factory objects that know how to create the appropriate type of concrete VMessageHandler subclass for a particular message ID or set of message IDs.

Normally you can just place the DEFINE_MESSAGE_HANDLER_FACTORY macro in your message handler implementation file.

Definition at line 223 of file vmessagehandler.h.


Member Function Documentation

virtual VMessageHandler* VMessageHandlerFactory::createHandler ( VMessagePtr  m,
VServer server,
VClientSessionPtr  session,
VSocketThread thread 
) [pure virtual]

Instantiates a new message handler for the specified message's ID; must be overridden by the concrete subclass.

Parameters:
mthe message to be passed thru to the handler constructor
serverthe serer to be passed thru to the handler constructor
sessionthe session to be passed thru to the handler constructor
threadthe thread to be passed thru to the handler constructor

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

Copyright ©1997-2014 Trygve Isaacson. All rights reserved. This documentation was generated with Doxygen.