diff options
| author | Gordon Sim <gsim@apache.org> | 2007-08-05 13:25:36 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-08-05 13:25:36 +0000 |
| commit | f9cc99d247991b39b07b7bf06e642cf79b24edfa (patch) | |
| tree | 746269114bf67675a31c13f35b4372df19e74464 /qpid/cpp/rubygen/amqpgen.rb | |
| parent | 6c10e43526394ce0cf7d4a4dbdca56aaeb175f90 (diff) | |
| download | qpid-python-f9cc99d247991b39b07b7bf06e642cf79b24edfa.tar.gz | |
Added first cut of generated client interface.
Old channel interface still supported; shares SessionCore with the new interface.
Todo: allow applications to signal completion of received commands; keywrod args for interface.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@562866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/amqpgen.rb')
| -rwxr-xr-x | qpid/cpp/rubygen/amqpgen.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/qpid/cpp/rubygen/amqpgen.rb b/qpid/cpp/rubygen/amqpgen.rb index 5cad9d6336..0da1bfe824 100755 --- a/qpid/cpp/rubygen/amqpgen.rb +++ b/qpid/cpp/rubygen/amqpgen.rb @@ -76,6 +76,10 @@ end class AmqpMethod < AmqpElement def initialize(xml, amqp) super; end + def content() + attributes["content"] + end + def index() attributes["index"]; end def fields() @@ -84,7 +88,7 @@ class AmqpMethod < AmqpElement # Responses to this method (0-9) def responses() - @cache_responses ||= elements.collect("response") { |el| new AmqpMethod(el,self) } + @cache_responses ||= elements.collect("response") { |el| AmqpMethod.new(el,self) } end # Methods this method responds to (0-9) @@ -178,7 +182,7 @@ class Generator if (@outdir != "-") path=Pathname.new "#{@outdir}/#{file}" path.parent.mkpath - path.open('w') { |@out| yield } + path.open('w') { |@out| yield } end end |
