From 4a362885479d9d8de7d922db60ca220c537afa11 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Wed, 22 Aug 2007 08:54:54 +0000 Subject: Reapply rev 568249 with the changes made to the generator this time, rather than the generated file itself. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568517 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/framing/AMQMethodBody.cpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'cpp/src/qpid/framing/AMQMethodBody.cpp') diff --git a/cpp/src/qpid/framing/AMQMethodBody.cpp b/cpp/src/qpid/framing/AMQMethodBody.cpp index 924d906d43..48b50763fc 100644 --- a/cpp/src/qpid/framing/AMQMethodBody.cpp +++ b/cpp/src/qpid/framing/AMQMethodBody.cpp @@ -19,10 +19,25 @@ * */ #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 -- cgit v1.2.1