summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/TransferContent.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/TransferContent.h')
-rw-r--r--cpp/src/qpid/framing/TransferContent.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/TransferContent.h b/cpp/src/qpid/framing/TransferContent.h
index 14ba209f4b..c5fc395c94 100644
--- a/cpp/src/qpid/framing/TransferContent.h
+++ b/cpp/src/qpid/framing/TransferContent.h
@@ -21,13 +21,17 @@
#ifndef _TransferContent_
#define _TransferContent_
+#include "FrameSet.h"
#include "MethodContent.h"
+#include "qpid/Exception.h"
#include "qpid/framing/MessageProperties.h"
#include "qpid/framing/DeliveryProperties.h"
namespace qpid {
namespace framing {
+struct NoSuchPropertiesException : public Exception {};
+
class TransferContent : public MethodContent
{
AMQHeaderBody header;
@@ -37,9 +41,16 @@ public:
AMQHeaderBody getHeader() const;
void setData(const std::string&);
void appendData(const std::string&);
- const std::string& getData() const;
MessageProperties& getMessageProperties();
DeliveryProperties& getDeliveryProperties();
+
+ const std::string& getData() const;
+ const MessageProperties& getMessageProperties() const;
+ const DeliveryProperties& getDeliveryProperties() const;
+ bool hasMessageProperties() const;
+ bool hasDeliveryProperties() const;
+
+ void populate(const FrameSet& frameset);
};
}}