summaryrefslogtreecommitdiff
path: root/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
commit2986ee70a6af129a03ffb0a0d629bf4f5054fc36 (patch)
treeb91c64e71313256d11d9f318246f732d73576d20 /cpp/rubygen/cppgen.rb
parent7190479334fb9bf3942eae4d2d92685d72e82d55 (diff)
downloadqpid-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/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index 0de448869d..7973bccf5b 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/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