Message_t Class Reference

Message base class. More...

#include <UTMessage.h>

Inheritance diagram for Message_t:
FileOpenCompleteMessage_t FileReadCompleteMessage_t FileWriteCompleteMessage_t QuitResponseMessage_t TimerExpiredMessage_t

List of all members.

Public Member Functions

 Message_t ()
virtual ~Message_t ()
virtual gives Message_tClone () const
void Flatten (out Buffer_t *buffer) const
virtual int FlattenContents (out byte *buffer) const
virtual int FlattenedContentsSize () const

Detailed Description

Message base class. See MessageLoop_t for a comprehensive explanation of the UT messaging architecture.

Definition at line 43 of file UTMessage.h.


Constructor & Destructor Documentation

Message_t::Message_t (  ) 

Constructor.

virtual Message_t::~Message_t (  )  [virtual]

Destructor.


Member Function Documentation

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.


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

Generated on Tue Dec 14 22:35:07 2010 for UT library by  doxygen 1.6.1