From a9bd6d6e8686574d0170248ccd0280ec21dd67c3 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 21 Aug 2007 21:52:31 +0000 Subject: Undo revision 568249, causing tests to hang. ------------------------------------------------------------------------ r568249 | gsim | 2007-08-21 16:11:20 -0400 (Tue, 21 Aug 2007) | 3 lines Invocation now uses the visitor mechanism ------------------------------------------------------------------------ git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568298 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQMethodBody.cpp | 15 --------------- cpp/src/qpid/framing/AMQMethodBody.h | 4 ++-- 2 files changed, 2 insertions(+), 17 deletions(-) (limited to 'cpp/src') diff --git a/cpp/src/qpid/framing/AMQMethodBody.cpp b/cpp/src/qpid/framing/AMQMethodBody.cpp index 48b50763fc..924d906d43 100644 --- a/cpp/src/qpid/framing/AMQMethodBody.cpp +++ b/cpp/src/qpid/framing/AMQMethodBody.cpp @@ -19,25 +19,10 @@ * */ #include "AMQMethodBody.h" -#include "qpid/framing/InvocationVisitor.h" namespace qpid { namespace framing { AMQMethodBody::~AMQMethodBody() {} -void AMQMethodBody::invoke(AMQP_ServerOperations& ops) -{ - InvocationVisitor v(&ops); - accept(v); - assert(v.wasHandled()); -} - -bool AMQMethodBody::invoke(Invocable* invocable) -{ - InvocationVisitor v(invocable); - accept(v); - return v.wasHandled(); -} - }} // namespace qpid::framing diff --git a/cpp/src/qpid/framing/AMQMethodBody.h b/cpp/src/qpid/framing/AMQMethodBody.h index 5acb3a7b66..9c776e143b 100644 --- a/cpp/src/qpid/framing/AMQMethodBody.h +++ b/cpp/src/qpid/framing/AMQMethodBody.h @@ -50,8 +50,8 @@ class AMQMethodBody : public AMQBody { virtual MethodId amqpMethodId() const = 0; virtual ClassId amqpClassId() const = 0; - void invoke(AMQP_ServerOperations&); - bool invoke(Invocable*); + virtual void invoke(AMQP_ServerOperations&) { assert(0); } + virtual bool invoke(Invocable*) { return false; } template bool isA() const { return amqpClassId()==T::CLASS_ID && amqpMethodId()==T::METHOD_ID; -- cgit v1.2.1