summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/amqpgen.rb
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2007-09-27 16:50:25 +0000
committerGordon Sim <gsim@apache.org>2007-09-27 16:50:25 +0000
commit0bd1bbce4409efbdddb19204908ca9dc839c1159 (patch)
treed3e07860dff54cae80a57d64813d172f0cc14bdf /qpid/cpp/rubygen/amqpgen.rb
parent73660a04ead88f5ace8f2ad38612955893460109 (diff)
downloadqpid-python-0bd1bbce4409efbdddb19204908ca9dc839c1159.tar.gz
Some revisions to rubygen for packed structs and execution header (changes not yet enabled)
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@580094 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/amqpgen.rb')
-rwxr-xr-xqpid/cpp/rubygen/amqpgen.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/cpp/rubygen/amqpgen.rb b/qpid/cpp/rubygen/amqpgen.rb
index f47b8e2f9f..21bc05c651 100755
--- a/qpid/cpp/rubygen/amqpgen.rb
+++ b/qpid/cpp/rubygen/amqpgen.rb
@@ -151,7 +151,7 @@ end
class AmqpStruct < AmqpElement
def initialize(xml, parent) super; end
- amqp_attr_reader :size, :type
+ amqp_attr_reader :size, :type, :pack
amqp_child_reader :field
def result?() parent.xml.name == "result"; end
@@ -181,6 +181,10 @@ class AmqpClass < AmqpElement
@methods_on ||= { }
@methods_on[chassis] ||= methods_.select { |m| m.on_chassis? chassis }
end
+
+ def l4?()
+ !["connection", "session", "execution"].include?(name)
+ end
end