summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/cppgen.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/cppgen.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/cppgen.rb')
-rwxr-xr-xqpid/cpp/rubygen/cppgen.rb5
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