From 9fd2a66990309c75ffcc461fc010f0cf32505b71 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Tue, 30 Oct 2007 23:36:27 +0000 Subject: Generate doxygen comments for Session_0_10 using AMQP elements. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@590512 13f79535-47bb-0310-9956-ffa450edef68 --- qpid/cpp/rubygen/amqpgen.rb | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'qpid/cpp/rubygen/amqpgen.rb') diff --git a/qpid/cpp/rubygen/amqpgen.rb b/qpid/cpp/rubygen/amqpgen.rb index 5952b494df..efd5b024ac 100755 --- a/qpid/cpp/rubygen/amqpgen.rb +++ b/qpid/cpp/rubygen/amqpgen.rb @@ -89,7 +89,7 @@ end class AmqpElement def wrap(xml) - return nil if ["doc","assert","rule"].include? xml.name + return nil if ["assert","rule"].include? xml.name eval("Amqp"+xml.name.caps).new(xml, self) or raise "nil wrapper" end @@ -103,7 +103,7 @@ class AmqpElement @cache_children[nil]=@children end - attr_reader :parent, :xml, :children + attr_reader :parent, :xml, :children, :doc amqp_attr_reader :name, :label # List of children of type elname, or all children if elname @@ -129,6 +129,11 @@ end AmqpResponse = AmqpElement +class AmqpDoc < AmqpElement + def initialize(xml,parent) super; end + def text() @xml.text end +end + class AmqpDomain < AmqpElement def initialize(xml, parent) super; end amqp_attr_reader :type -- cgit v1.2.1