summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/amqpgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-10-30 23:36:27 +0000
committerAlan Conway <aconway@apache.org>2007-10-30 23:36:27 +0000
commit9fd2a66990309c75ffcc461fc010f0cf32505b71 (patch)
tree239bc709ece05007d710dc37c9235fc42fb94ca5 /qpid/cpp/rubygen/amqpgen.rb
parent32bfb737f530e983876fc4d39d6a07b22368800e (diff)
downloadqpid-python-9fd2a66990309c75ffcc461fc010f0cf32505b71.tar.gz
Generate doxygen comments for Session_0_10 using AMQP <doc> elements.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@590512 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/amqpgen.rb')
-rwxr-xr-xqpid/cpp/rubygen/amqpgen.rb9
1 files changed, 7 insertions, 2 deletions
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