diff options
author | Gordon Sim <gsim@apache.org> | 2006-12-13 17:15:01 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2006-12-13 17:15:01 +0000 |
commit | 036527ef6d2460d13b29857f34a0e0c91814246a (patch) | |
tree | f6e9ba4d794368d5fbfb1bf66db14ba60908532b /qpid/cpp/lib/client/ClientMessage.h | |
parent | 2b03d1a8dce5bc9d7d6baa19497554764f03721b (diff) | |
download | qpid-python-036527ef6d2460d13b29857f34a0e0c91814246a.tar.gz |
Added some doxygen comments for the client API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@486747 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/client/ClientMessage.h')
-rw-r--r-- | qpid/cpp/lib/client/ClientMessage.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/qpid/cpp/lib/client/ClientMessage.h b/qpid/cpp/lib/client/ClientMessage.h index c1bcea3720..b46eb0bc72 100644 --- a/qpid/cpp/lib/client/ClientMessage.h +++ b/qpid/cpp/lib/client/ClientMessage.h @@ -28,6 +28,12 @@ namespace qpid { namespace client { + /** + * A representation of messages for sent or recived through the + * client api. + * + * \ingroup clientapi + */ class Message{ qpid::framing::AMQHeaderBody::shared_ptr header; std::string data; @@ -40,9 +46,25 @@ namespace client { Message(); ~Message(); + /** + * Allows the application to access the content of messages + * received. + * + * @return a string representing the data of the message + */ inline std::string getData(){ return data; } + /** + * Allows the application to set the content of messages to be + * sent. + * + * @param data a string representing the data of the message + */ inline void setData(const std::string& _data){ data = _data; } + /** + * @return true if this message was delivered previously (to + * any consumer) but was not acknowledged. + */ inline bool isRedelivered(){ return redelivered; } inline void setRedelivered(bool _redelivered){ redelivered = _redelivered; } @@ -66,6 +88,9 @@ namespace client { void setContentType(const std::string& type); void setContentEncoding(const std::string& encoding); void setHeaders(const qpid::framing::FieldTable& headers); + /** + * Sets the delivery mode. 1 = non-durable, 2 = durable. + */ void setDeliveryMode(u_int8_t mode); void setPriority(u_int8_t priority); void setCorrelationId(const std::string& correlationId); |