summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/AMQBody.h
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/qpid/framing/AMQBody.h')
-rw-r--r--cpp/src/qpid/framing/AMQBody.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/AMQBody.h b/cpp/src/qpid/framing/AMQBody.h
index f3bf65470c..73c462a427 100644
--- a/cpp/src/qpid/framing/AMQBody.h
+++ b/cpp/src/qpid/framing/AMQBody.h
@@ -22,6 +22,7 @@
*
*/
#include "qpid/framing/amqp_types.h"
+#include "qpid/amqp_0_10/helpers.h"
#include <ostream>
@@ -60,6 +61,12 @@ class AMQBody
virtual AMQMethodBody* getMethod() { return 0; }
virtual const AMQMethodBody* getMethod() const { return 0; }
+ virtual amqp_0_10::Command* getCommand() { return 0; }
+ virtual const amqp_0_10::Command* getCommand() const { return 0; }
+
+ virtual amqp_0_10::Control* getControl() { return 0; }
+ virtual const amqp_0_10::Control* getControl() const { return 0; }
+
/** Match if same type and same class/method ID for methods */
static bool match(const AMQBody& , const AMQBody& );
};
@@ -70,7 +77,9 @@ enum BodyTypes {
METHOD_BODY = 1,
HEADER_BODY = 2,
CONTENT_BODY = 3,
- HEARTBEAT_BODY = 8
+ HEARTBEAT_BODY = 8,
+ COMMAND_BODY = 100+amqp_0_10::COMMAND,
+ CONTROL_BODY = 100+amqp_0_10::CONTROL
};
}} // namespace qpid::framing