summaryrefslogtreecommitdiff
path: root/cpp/include/qpid
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2013-08-13 15:06:42 +0000
committerGordon Sim <gsim@apache.org>2013-08-13 15:06:42 +0000
commit592e3317e4277cc469b0bdc29f4e809c1b639d07 (patch)
tree2f4aef48e274ace695d87c86efdfbc4fc4cee36a /cpp/include/qpid
parent57f7ef0a6cf49ba5275360b8e114b27034ee1548 (diff)
downloadqpid-python-592e3317e4277cc469b0bdc29f4e809c1b639d07.tar.gz
QPID-5040: support for sending and receiving messages with AmqpValue sections
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1513536 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/include/qpid')
-rw-r--r--cpp/include/qpid/messaging/Message.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/cpp/include/qpid/messaging/Message.h b/cpp/include/qpid/messaging/Message.h
index 5b14c7cf27..10569eb006 100644
--- a/cpp/include/qpid/messaging/Message.h
+++ b/cpp/include/qpid/messaging/Message.h
@@ -42,6 +42,7 @@ class MessageImpl;
class QPID_MESSAGING_CLASS_EXTERN Message
{
public:
+ QPID_MESSAGING_EXTERN Message(qpid::types::Variant&);
QPID_MESSAGING_EXTERN Message(const std::string& bytes = std::string());
QPID_MESSAGING_EXTERN Message(const char*, size_t);
QPID_MESSAGING_EXTERN Message(const Message&);
@@ -164,6 +165,27 @@ class QPID_MESSAGING_CLASS_EXTERN Message
/** Get the content as a std::string */
QPID_MESSAGING_EXTERN std::string getContent() const;
+ /** Get the content as raw bytes (an alias for getContent() */
+ QPID_MESSAGING_EXTERN std::string getContentBytes() const;
+ /** Set the content as raw bytes (an alias for setContent() */
+ QPID_MESSAGING_EXTERN void setContentBytes(const std::string&);
+ /**
+ * Get the content as a Variant, which can represent an object of
+ * different types. This can be used for content representing a
+ * map or a list for example.
+ */
+ QPID_MESSAGING_EXTERN qpid::types::Variant& getContentObject();
+ /**
+ * Get the content as a Variant, which can represent an object of
+ * different types. This can be used for content representing a
+ * map or a list for example.
+ */
+ QPID_MESSAGING_EXTERN const qpid::types::Variant& getContentObject() const;
+ /**
+ * Set the content using a Variant, which can represent an object
+ * of different types.
+ */
+ QPID_MESSAGING_EXTERN void setContentObject(const qpid::types::Variant&);
/**
* Get a const pointer to the start of the content data. The
* memory pointed to is owned by the message. The getContentSize()