diff options
Diffstat (limited to 'cpp/src/qpid/framing/AMQFrame.h')
| -rw-r--r-- | cpp/src/qpid/framing/AMQFrame.h | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/cpp/src/qpid/framing/AMQFrame.h b/cpp/src/qpid/framing/AMQFrame.h index bef1b01df4..1a7b203ad7 100644 --- a/cpp/src/qpid/framing/AMQFrame.h +++ b/cpp/src/qpid/framing/AMQFrame.h @@ -48,7 +48,7 @@ class AMQFrame : public AMQDataBlock virtual void encode(Buffer& buffer); virtual bool decode(Buffer& buffer); virtual uint32_t size() const; - uint16_t getChannel(); + uint16_t getChannel() const { return channel; } AMQBody::shared_ptr getBody(); /** Convenience template to cast the body to an expected type */ @@ -60,18 +60,17 @@ class AMQFrame : public AMQDataBlock uint32_t decodeHead(Buffer& buffer); void decodeBody(Buffer& buffer, uint32_t size); - private: - static AMQP_MethodVersionMap versionMap; - ProtocolVersion version; - uint16_t channel; uint8_t type; AMQBody::shared_ptr body; - + ProtocolVersion version; - friend std::ostream& operator<<(std::ostream& out, const AMQFrame& body); + private: + static AMQP_MethodVersionMap versionMap; }; +std::ostream& operator<<(std::ostream&, const AMQFrame&); + }} // namespace qpid::framing |
