diff options
| author | Carl C. Trieloff <cctrieloff@apache.org> | 2007-01-09 19:44:50 +0000 |
|---|---|---|
| committer | Carl C. Trieloff <cctrieloff@apache.org> | 2007-01-09 19:44:50 +0000 |
| commit | 13659cefe235ac0228749ba53e534910b9aae193 (patch) | |
| tree | 048e91f6708aa307a239ad1df65f551161a971ba /qpid/cpp/lib/common/framing/AMQFrame.h | |
| parent | 639e998c5fe03fc0a73667887af6a1828d400c0e (diff) | |
| download | qpid-python-13659cefe235ac0228749ba53e534910b9aae193.tar.gz | |
Most of remaining version changes for C++. Still need to deal with AMQFrame
defualt constructor and do some clean up here and there..
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@494540 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/lib/common/framing/AMQFrame.h')
| -rw-r--r-- | qpid/cpp/lib/common/framing/AMQFrame.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/qpid/cpp/lib/common/framing/AMQFrame.h b/qpid/cpp/lib/common/framing/AMQFrame.h index eb230c740c..d3c769087a 100644 --- a/qpid/cpp/lib/common/framing/AMQFrame.h +++ b/qpid/cpp/lib/common/framing/AMQFrame.h @@ -27,6 +27,7 @@ #include <AMQContentBody.h> #include <AMQHeartbeatBody.h> #include <AMQP_MethodVersionMap.h> +#include <AMQP_HighestVersion.h> #include <Buffer.h> #ifndef _AMQFrame_ @@ -39,16 +40,17 @@ namespace qpid { class AMQFrame : virtual public AMQDataBlock { static AMQP_MethodVersionMap versionMap; - + qpid::framing::ProtocolVersion version; + u_int16_t channel; u_int8_t type;//used if the body is decoded separately from the 'head' AMQBody::shared_ptr body; AMQBody::shared_ptr createMethodBody(Buffer& buffer); public: - AMQFrame(); - AMQFrame(u_int16_t channel, AMQBody* body); - AMQFrame(u_int16_t channel, AMQBody::shared_ptr& body); + AMQFrame(qpid::framing::ProtocolVersion& _version = highestProtocolVersion); + AMQFrame(qpid::framing::ProtocolVersion& _version, u_int16_t channel, AMQBody* body); + AMQFrame(qpid::framing::ProtocolVersion& _version, u_int16_t channel, AMQBody::shared_ptr& body); virtual ~AMQFrame(); virtual void encode(Buffer& buffer); virtual bool decode(Buffer& buffer); |
