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 | 0bd1bbce4409efbdddb19204908ca9dc839c1159 (patch) | |
tree | d3e07860dff54cae80a57d64813d172f0cc14bdf /qpid/cpp/rubygen/cppgen.rb | |
parent | 73660a04ead88f5ace8f2ad38612955893460109 (diff) | |
download | qpid-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/cppgen.rb')
-rwxr-xr-x | qpid/cpp/rubygen/cppgen.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/qpid/cpp/rubygen/cppgen.rb b/qpid/cpp/rubygen/cppgen.rb index 0de448869d..7973bccf5b 100755 --- a/qpid/cpp/rubygen/cppgen.rb +++ b/qpid/cpp/rubygen/cppgen.rb @@ -135,6 +135,10 @@ class AmqpDomain CppType.new(d.cppname).passcref.retcref or raise "Invalid type #{self}" end + + def AmqpDomain.lookup_type(t) + @@typemap[t] + end end class AmqpResult @@ -144,6 +148,7 @@ class AmqpResult end class AmqpStruct + def cpp_pack_type() AmqpDomain.lookup_type(pack()) or CppType.new("uint16_t"); end def cpptype() parent.cpptype; end def cppname() cpptype.name; end end |