From b7b4a5407af61099567b8f1b3765cfada6150312 Mon Sep 17 00:00:00 2001 From: Gordon Sim Date: Tue, 28 Aug 2007 19:38:17 +0000 Subject: Updated message.transfer encoding to use header and content segments (including new structs). Unified more between the basic and message classes messages. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@570538 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/rubygen/templates/InvocationVisitor.rb | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'qpid/cpp/rubygen/templates/InvocationVisitor.rb') diff --git a/qpid/cpp/rubygen/templates/InvocationVisitor.rb b/qpid/cpp/rubygen/templates/InvocationVisitor.rb index befbdd53c7..67a0479bb6 100644 --- a/qpid/cpp/rubygen/templates/InvocationVisitor.rb +++ b/qpid/cpp/rubygen/templates/InvocationVisitor.rb @@ -12,11 +12,7 @@ class InvocationVisitor < CppGen end def invocation_args(m) - if (m.parent.name == "message" && (m.name == "transfer" || m.name == "append")) - "body" - else - m.param_names.collect {|p| "body.get" + p.caps + "()" }.join(",\n") - end + m.param_names.collect {|p| "body.get" + p.caps + "()" }.join(",\n") end def null_visit(m) @@ -95,7 +91,7 @@ EOS } genl "}" genl - @amqp.methods_.each { |m| m.on_server? ? define_visit(m) : null_visit(m) } + @amqp.methods_.each { |m| m.on_server? && !m.content() ? define_visit(m) : null_visit(m) } } } end -- cgit v1.2.1