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/rubygen/templates/InvocationVisitor.rb | 4 +-- cpp/rubygen/templates/structs.rb | 39 ------------------------------ cpp/src/qpid/framing/AMQMethodBody.cpp | 15 ++++++++++++ cpp/src/qpid/framing/AMQMethodBody.h | 4 +-- 4 files changed, 19 insertions(+), 43 deletions(-) (limited to 'cpp') diff --git a/cpp/rubygen/templates/InvocationVisitor.rb b/cpp/rubygen/templates/InvocationVisitor.rb index f3ac03ece2..7017872176 100644 --- a/cpp/rubygen/templates/InvocationVisitor.rb +++ b/cpp/rubygen/templates/InvocationVisitor.rb @@ -71,8 +71,8 @@ EOS } genl "public:" indent { - genl "InvocationVisitor(AMQP_ServerOperations* _ops) : ops(_ops), invocable(0) {}" - genl "InvocationVisitor(Invocable* _invocable) : ops(0), invocable(_invocable) {}" + genl "InvocationVisitor(AMQP_ServerOperations* _ops) : ops(_ops), invocable(0), succeeded(false) {}" + genl "InvocationVisitor(Invocable* _invocable) : ops(0), invocable(_invocable), succeeded(false) {}" genl "const std::string& getResult() const { return result; }" genl "const bool hasResult() const { return !result.empty(); }" genl "bool wasHandled() const { return succeeded; }" diff --git a/cpp/rubygen/templates/structs.rb b/cpp/rubygen/templates/structs.rb index 972a0386b9..571a85b827 100644 --- a/cpp/rubygen/templates/structs.rb +++ b/cpp/rubygen/templates/structs.rb @@ -129,45 +129,6 @@ class StructGen < CppGen inline ClassId amqpClassId() const { return CLASS_ID; } inline MethodId amqpMethodId() const { return METHOD_ID; } EOS - if (s.is_server_method?) - gen <#{s.cppname} - ( -EOS - if (s.amqp_parent.name == "message" && (s.name == "transfer" || s.name == "append")) - indent(4) { genl "*this" } - else - indent(4) { genl s.param_names.join(",\n") } - end - - genl <(target); - if (ptr) { - ptr->#{s.cppname}( -EOS - if (s.amqp_parent.name == "message" && (s.name == "transfer" || s.name == "append")) - indent(5) { genl "*this" } - else - indent(5) { genl s.param_names.join(",\n") } - end - - gen < bool isA() const { return amqpClassId()==T::CLASS_ID && amqpMethodId()==T::METHOD_ID; -- cgit v1.2.1