![]() |
Vault
4.1
|
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>
Public Member Functions | |
virtual VMessageHandler * | createHandler (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. |
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.
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.
m | the message to be passed thru to the handler constructor |
server | the serer to be passed thru to the handler constructor |
session | the session to be passed thru to the handler constructor |
thread | the thread to be passed thru to the handler constructor |