Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound 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 Methods

 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
 
Returns:
the buffer as an array of unsigned characters


unsigned int length () const
 
Returns:
the length of the buffer


string messageString () const
 
Returns:
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 32 of file CODEX_Quorum/Message.h.


The documentation for this class was generated from the following files:
Generated on Wed Jun 2 16:33:16 2004 for COrnell Data EXchange (CODEX) by doxygen1.2.18