summaryrefslogtreecommitdiff
path: root/cpp/lib/client/ClientMessage.h
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2006-12-13 17:15:01 +0000
committerGordon Sim <gsim@apache.org>2006-12-13 17:15:01 +0000
commit346760b8e03bb50c1704d9e7e762fa4f5a284fb6 (patch)
tree0271c7fc7d0799f7ecf80b362512b68cb2c5eeec /cpp/lib/client/ClientMessage.h
parent9b87937e2657848cd8497bda70266e38dc8c0f90 (diff)
downloadqpid-python-346760b8e03bb50c1704d9e7e762fa4f5a284fb6.tar.gz
Added some doxygen comments for the client API.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@486747 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/lib/client/ClientMessage.h')
-rw-r--r--cpp/lib/client/ClientMessage.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/cpp/lib/client/ClientMessage.h b/cpp/lib/client/ClientMessage.h
index c1bcea3720..b46eb0bc72 100644
--- a/cpp/lib/client/ClientMessage.h
+++ b/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);