Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

CODEX_Quorum::Message Class Reference

Message is a simple data buffer that can grow arbitrarily. More...

#include <Message.h>

List of all members.

Public Types

typedef vector< unsigned char > BufferType
 Internal data format.

Public Member Functions

 Message ()
 Creates a Message with an empty buffer.
 Message (const BufferType &buff)
 Creates a Message from an existing buffer.
 Message (const string &aString)
 Creates a Message from a string.
 Message (const unsigned char *buff, int len)
 Creates a Message from an array of unsigned characters.
 Message (const Message &aMessage)
 Creates a Message from another Message.
void fill (const Message &aMessage)
 Append the contents of another Message to the internal buffer.
void fill (const BufferType &buff)
 Append the contents of a buffer to the internal buffer.
void fill (const string &aString)
 Append the contents of a string to the internal buffer.
void fill (const unsigned char *buff, int len)
 Append the contents of an array of uchars to the internal buffer.
void fill (unsigned char a)
 Append a single unsigned character to the internal buffer.
const unsigned char * buffer () const
 The buffer as an array of unsigned characters.
unsigned int length () const
 The length of the buffer.
string messageString () const
 The buffer as a string.


Detailed Description

Message is a simple data buffer that can grow arbitrarily.

The internal structure is a vector of unsigned characters.

Definition at line 35 of file CODEX_Quorum/Message.h.


The documentation for this class was generated from the following file:
Generated on Fri May 6 17:42:29 2005 for COrnell Data EXchange (CODEX) by  doxygen 1.4.1