Message base class. More...
#include <UTMessage.h>
Public Member Functions | |
Message_t () | |
virtual | ~Message_t () |
virtual gives Message_t * | Clone () const |
void | Flatten (out Buffer_t *buffer) const |
virtual int | FlattenContents (out byte *buffer) const |
virtual int | FlattenedContentsSize () const |
Message base class. See MessageLoop_t for a comprehensive explanation of the UT messaging architecture.
Definition at line 43 of file UTMessage.h.
Message_t::Message_t | ( | ) |
Constructor.
virtual Message_t::~Message_t | ( | ) | [virtual] |
Destructor.
virtual gives Message_t* Message_t::Clone | ( | ) | const [virtual] |
Creates a clone of the message.
void Message_t::Flatten | ( | out Buffer_t * | buffer | ) | const |
Flattens the message into a buffer.
virtual int Message_t::FlattenContents | ( | out byte * | buffer | ) | const [virtual] |
Flattens the message into a buffer, which already contains some information needed to reconstruct the specific type of message from the buffer. If a message subclass is used in a context where it would need to be flattened (sent from one process to another), then it must implement the FlattenContents function. It must return the number of bytes used, which must match what would be returned by FlattenedContentsSize.
virtual int Message_t::FlattenedContentsSize | ( | ) | const [virtual] |
Returns the size which would be required to flatten the message contents into a buffer. If a message subclass is used in a context where it would need to be flattened (sent from one process to another), then it must implement the FlattenedContentsSize function.