Vault  4.1
Public Member Functions
VMessageFactory Class Reference

VMessageFactory is an abstract base class that you must implement for purposes of giving an input thread a way to instantiate the correct concrete type of message. More...

#include <vmessage.h>

List of all members.

Public Member Functions

virtual VMessagePtr instantiateNewMessage (VMessageID messageID=0) const =0
 Must be implemented by subclass, to simply instantiate a new VMessage object of a concrete VMessage subclass type.

Detailed Description

VMessageFactory is an abstract base class that you must implement for purposes of giving an input thread a way to instantiate the correct concrete type of message.

All you have to do is implement the instantiateNewMessage() function to return a new VMessage of the desired subclass type.

Definition at line 210 of file vmessage.h.


Member Function Documentation

virtual VMessagePtr VMessageFactory::instantiateNewMessage ( VMessageID  messageID = 0) const [pure virtual]

Must be implemented by subclass, to simply instantiate a new VMessage object of a concrete VMessage subclass type.

Parameters:
messageIDthe ID to supply to the message constructor
Returns:
pointer to a new message object

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.