diff options
Diffstat (limited to 'cpp/src/qpid/framing/AMQFrame.h')
| -rw-r--r-- | cpp/src/qpid/framing/AMQFrame.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cpp/src/qpid/framing/AMQFrame.h b/cpp/src/qpid/framing/AMQFrame.h index 1a7b203ad7..16c1427802 100644 --- a/cpp/src/qpid/framing/AMQFrame.h +++ b/cpp/src/qpid/framing/AMQFrame.h @@ -32,7 +32,8 @@ #include "AMQHeartbeatBody.h" #include "qpid/framing/AMQP_MethodVersionMap.h" #include "qpid/framing/AMQP_HighestVersion.h" -#include "Buffer.h" +#include "qpid/framing/Buffer.h" +#include "qpid/shared_ptr.h" namespace qpid { namespace framing { @@ -49,7 +50,9 @@ class AMQFrame : public AMQDataBlock virtual bool decode(Buffer& buffer); virtual uint32_t size() const; uint16_t getChannel() const { return channel; } - AMQBody::shared_ptr getBody(); + + shared_ptr<AMQBody> getBody() { return body; } + void setBody(const shared_ptr<AMQBody>& b) { body = b; } /** Convenience template to cast the body to an expected type */ template <class T> boost::shared_ptr<T> castBody() { |
