summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/framing/AMQMethodBody.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-08-21 20:11:20 +0000
committerGordon Sim <gsim@apache.org>2007-08-21 20:11:20 +0000
commitf3737cf4414656f9804dde96271ef426523df050 (patch)
treec0fb4fa20e5424336dd40c01d2f7ef8f23e191ce /cpp/src/qpid/framing/AMQMethodBody.cpp
parent927423df31ee95378afbf5ee7a0f558a7def33bb (diff)
downloadqpid-python-f3737cf4414656f9804dde96271ef426523df050.tar.gz
Invocation now uses the visitor mechanism
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@568249 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/framing/AMQMethodBody.cpp')
-rw-r--r--cpp/src/qpid/framing/AMQMethodBody.cpp15
1 files changed, 15 insertions, 0 deletions
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