diff options
| author | Gordon Sim <gsim@apache.org> | 2007-09-27 16:50:25 +0000 |
|---|---|---|
| committer | Gordon Sim <gsim@apache.org> | 2007-09-27 16:50:25 +0000 |
| commit | 2986ee70a6af129a03ffb0a0d629bf4f5054fc36 (patch) | |
| tree | b91c64e71313256d11d9f318246f732d73576d20 /cpp/rubygen/amqpgen.rb | |
| parent | 7190479334fb9bf3942eae4d2d92685d72e82d55 (diff) | |
| download | qpid-python-2986ee70a6af129a03ffb0a0d629bf4f5054fc36.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/qpid@580094 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/amqpgen.rb')
| -rwxr-xr-x | cpp/rubygen/amqpgen.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/rubygen/amqpgen.rb b/cpp/rubygen/amqpgen.rb index f47b8e2f9f..21bc05c651 100755 --- a/cpp/rubygen/amqpgen.rb +++ b/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 |
