Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

POMessageFactory Class Reference

#include <POMessageFactory.h>

List of all members.

Static Public Member Functions

void init ()
bool Register (POMessage *msg)
bool UnRegister (const string &type)
POMessageBuildFromBuffer (char *buffer)
POMessageBuild (const string &type)


Member Function Documentation

POMessage * POMessageFactory::Build const string &  type  )  [static]
 

Builds a new message based on type

Parameters:
type - the MessageType
Returns:
a copy of the message

POMessage * POMessageFactory::BuildFromBuffer char *  buffer  )  [static]
 

Creates a new message based on a packed buffer

Parameters:
buffer - the packed buffer
Returns:
the message

void POMessageFactory::init  )  [static]
 

bool POMessageFactory::Register POMessage msg  )  [static]
 

Used to add a new message type to the factory. Msg is a pointer to a message that the factory will keep around and use to create new messages as needed.

Parameters:
msg - the message to use for a factory
Returns:
true if no conflicts, false if type is registered

bool POMessageFactory::UnRegister const string &  type  )  [static]
 

Removes a message type from the factory. Useful if you are loading and unloading DSOs

Parameters:
type - the message type
Returns:
true if message could be removed, false if unknown type


The documentation for this class was generated from the following files:
Generated on Tue Jun 15 12:49:29 2004 for pexpr by doxygen 1.3.4