summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-07-23 12:29:17 +0000
committerGordon Sim <gsim@apache.org>2007-07-23 12:29:17 +0000
commit0db1af31320aa010c8e97da80000f7548d889068 (patch)
treece2cd8dba8cf46b685dcb626b31e25c17702c1a0 /cpp/src/qpid/framing
parent747ac26509e78ac9aa9120be02cd446ac99d21cd (diff)
downloadqpid-python-0db1af31320aa010c8e97da80000f7548d889068.tar.gz
Added initial 'execution-layer' to try out methods form the 0-10 execution class.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@558700 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing')
-rw-r--r--cpp/src/qpid/framing/AMQMethodBody.cpp4
-rw-r--r--cpp/src/qpid/framing/AMQMethodBody.h1
-rw-r--r--cpp/src/qpid/framing/ChannelAdapter.h4
-rw-r--r--cpp/src/qpid/framing/SequenceNumber.h6
4 files changed, 11 insertions, 4 deletions
diff --git a/cpp/src/qpid/framing/AMQMethodBody.cpp b/cpp/src/qpid/framing/AMQMethodBody.cpp
index a7df0578c2..04941eaa58 100644
--- a/cpp/src/qpid/framing/AMQMethodBody.cpp
+++ b/cpp/src/qpid/framing/AMQMethodBody.cpp
@@ -36,6 +36,10 @@ void AMQMethodBody::invoke(AMQP_ServerOperations&, const MethodContext&){
THROW_QPID_ERROR(PROTOCOL_ERROR, "Method not supported by AMQP Server.");
}
+bool AMQMethodBody::invoke(Invocable*) {
+ return false;
+}
+
AMQMethodBody::shared_ptr AMQMethodBody::create(
AMQP_MethodVersionMap& versionMap, ProtocolVersion version,
Buffer& buffer)
diff --git a/cpp/src/qpid/framing/AMQMethodBody.h b/cpp/src/qpid/framing/AMQMethodBody.h
index 306c26cd27..55cf5cb864 100644
--- a/cpp/src/qpid/framing/AMQMethodBody.h
+++ b/cpp/src/qpid/framing/AMQMethodBody.h
@@ -52,6 +52,7 @@ class AMQMethodBody : public AMQBody
virtual ClassId amqpClassId() const = 0;
virtual void invoke(AMQP_ServerOperations&, const MethodContext&);
+ virtual bool invoke(Invocable* target);
template <class T> bool isA() {
return amqpClassId()==T::CLASS_ID && amqpMethodId()==T::METHOD_ID;
diff --git a/cpp/src/qpid/framing/ChannelAdapter.h b/cpp/src/qpid/framing/ChannelAdapter.h
index 1c3f29d762..50b1c9ff7e 100644
--- a/cpp/src/qpid/framing/ChannelAdapter.h
+++ b/cpp/src/qpid/framing/ChannelAdapter.h
@@ -78,10 +78,6 @@ class ChannelAdapter : protected BodyHandler {
RequestId send(shared_ptr<AMQBody> body,
Correlator::Action action=Correlator::Action());
- // TODO aconway 2007-04-05: remove and use make_shared_ptr at call sites.
- /**@deprecated Use make_shared_ptr with the other send() override */
- RequestId send(AMQBody* body) { return send(AMQBody::shared_ptr(body)); }
-
virtual bool isOpen() const = 0;
RequestId getFirstAckRequest() { return requester.getFirstAckRequest(); }
diff --git a/cpp/src/qpid/framing/SequenceNumber.h b/cpp/src/qpid/framing/SequenceNumber.h
index bf9d133cef..3e0dfea2af 100644
--- a/cpp/src/qpid/framing/SequenceNumber.h
+++ b/cpp/src/qpid/framing/SequenceNumber.h
@@ -48,6 +48,12 @@ class SequenceNumber
friend int32_t operator-(const SequenceNumber& a, const SequenceNumber& b);
};
+struct Window
+{
+ SequenceNumber hwm;
+ SequenceNumber lwm;
+};
+
}} // namespace qpid::framing