qpid::client::IncomingMessage Class Reference

Manage incoming messages. More...

#include <IncomingMessage.h>

Collaboration diagram for qpid::client::IncomingMessage:

Collaboration graph
[legend]
List of all members.

Public Member Functions

void openReference (const std::string &name)
 Add a reference.
void appendReference (const std::string &name, const std::string &data)
 Get a reference.
MessagecreateMessage (const std::string &destination, const std::string &reference)
 Create a message to destination associated with reference
Exceptions:
if destination or reference non-existent.

ReferencegetReference (const std::string &name)
 Get a reference.
void closeReference (const std::string &name)
 Close a reference and deliver all its messages.
void addDestination (std::string name, Destination &)
 Add a destination.
void removeDestination (std::string name)
 Remove a destination.
DestinationgetDestination (const std::string &name)
 Get a destination.

Classes

class  Destination
 Interface to a destination for messages. More...
struct  Reference
 Accumulate data associated with a set of messages. More...
class  WaitableDestination
 A destination that a thread can wait on till a message arrives. More...

Detailed Description

Manage incoming messages.

Uses reference and destination concepts from 0-9 Messsage class.

Basic messages use special destination and reference names to indicate get-ok, return etc. messages.


Member Function Documentation

void qpid::client::IncomingMessage::addDestination ( std::string  name,
Destination  
)

Add a destination.

Exceptions:
if a different Destination is already registered under name.

void qpid::client::IncomingMessage::appendReference ( const std::string &  name,
const std::string &  data 
)

Get a reference.

Throws if not already open.

void qpid::client::IncomingMessage::closeReference ( const std::string &  name  ) 

Close a reference and deliver all its messages.

Throws if not open or a message has an invalid destination.

Destination& qpid::client::IncomingMessage::getDestination ( const std::string &  name  ) 

Get a destination.

Throws if does not exist

Reference& qpid::client::IncomingMessage::getReference ( const std::string &  name  ) 

Get a reference.

Exceptions:
if non-existent.

void qpid::client::IncomingMessage::openReference ( const std::string &  name  ) 

Add a reference.

Throws if already open.

void qpid::client::IncomingMessage::removeDestination ( std::string  name  ) 

Remove a destination.

Throws if does not exist


The documentation for this class was generated from the following file:
Generated on Tue Apr 17 14:22:17 2007 for Qpid by  doxygen 1.4.7