From 0865408d7fa16f913391ed9391fb13268a74d8a1 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 5 Jul 2007 16:08:29 +0000 Subject: * src/qpid/cluster/SessionFrame.cpp, .h: Wrap AMQFrame with session UUID and direction. * src/qpid/cluster/Cluster.cpp, .h: Use SessionFrame. * src/qpid/framing/AMQFrame.h, .cpp: Added setBody(), inline getBody() * src/qpid/framing/Uuid.h, .cpp: Clean up constructors, inline. * src/qpid/framing/Buffer.h: Put/get byte*, size_T. * src/qpid/cluster/SessionManager.cpp, .h: - Maintain the session map. - Handle frames from cluster, dispatch to proper channels. - Implement HandlerUpdater for new channels and maintains git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@553543 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQFrame.h | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'cpp/src/qpid/framing/AMQFrame.h') 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 getBody() { return body; } + void setBody(const shared_ptr& b) { body = b; } /** Convenience template to cast the body to an expected type */ template boost::shared_ptr castBody() { -- cgit v1.2.1