diff options
| author | Gordon Sim <gsim@apache.org> | 2007-07-27 15:44:52 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-07-27 15:44:52 +0000 |
| commit | 80406d0fb680239a0141b81fb0b9f20d20c9b1e1 (patch) | |
| tree | 13677bf773bf25db03144aa72c97a49d2810240d /cpp/src/qpid/framing/AMQMethodBody.h | |
| parent | a9232d5a02a19f093f212cb0b76772a20b45cb1b (diff) | |
| download | qpid-python-80406d0fb680239a0141b81fb0b9f20d20c9b1e1.tar.gz | |
Use execution layer to acknowledge messages.
Turn off 0-9 framing of requests and responses.
Some refactoring around message delivery.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@560285 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQMethodBody.h')
| -rw-r--r-- | cpp/src/qpid/framing/AMQMethodBody.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/framing/AMQMethodBody.h b/cpp/src/qpid/framing/AMQMethodBody.h index 55cf5cb864..2b46c6ea00 100644 --- a/cpp/src/qpid/framing/AMQMethodBody.h +++ b/cpp/src/qpid/framing/AMQMethodBody.h @@ -47,6 +47,7 @@ class AMQMethodBody : public AMQBody AMQMethodBody(ProtocolVersion ver) : version(ver) {} virtual ~AMQMethodBody() {} void decode(Buffer&, uint32_t); + virtual void encode(Buffer& buffer) const; virtual MethodId amqpMethodId() const = 0; virtual ClassId amqpClassId() const = 0; @@ -64,8 +65,8 @@ class AMQMethodBody : public AMQBody virtual bool isRequest() const { return false; } virtual bool isResponse() const { return false; } - protected: static uint32_t baseSize() { return 4; } + protected: struct ClassMethodId { uint16_t classId; @@ -76,6 +77,9 @@ class AMQMethodBody : public AMQBody void encodeId(Buffer& buffer) const; virtual void encodeContent(Buffer& buffer) const = 0; virtual void decodeContent(Buffer& buffer) = 0; + + virtual void printPrefix(std::ostream&) const {} + }; |
