diff options
author | Gordon Sim <gsim@apache.org> | 2007-08-28 19:38:17 +0000 |
---|---|---|
committer | Gordon Sim <gsim@apache.org> | 2007-08-28 19:38:17 +0000 |
commit | 9e10f4ea3b2f8ab6650f635cada48e4735ca20d7 (patch) | |
tree | 26ad3b8dffa17fa665fe7a033a7c8092839df011 /cpp/rubygen/templates/InvocationVisitor.rb | |
parent | 6b09696b216c090b512c6af92bf7976ae3407add (diff) | |
download | qpid-python-9e10f4ea3b2f8ab6650f635cada48e4735ca20d7.tar.gz |
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/qpid@570538 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/templates/InvocationVisitor.rb')
-rw-r--r-- | cpp/rubygen/templates/InvocationVisitor.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/cpp/rubygen/templates/InvocationVisitor.rb b/cpp/rubygen/templates/InvocationVisitor.rb index befbdd53c7..67a0479bb6 100644 --- a/cpp/rubygen/templates/InvocationVisitor.rb +++ b/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 |