summaryrefslogtreecommitdiff
path: root/cpp/rubygen/cppgen.rb
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2007-08-02 21:00:54 +0000
committerAlan Conway <aconway@apache.org>2007-08-02 21:00:54 +0000
commitcd6b4ba256effcf6c3e3f69a74e51d82c579e2ea (patch)
treef45ef849bb8d138c6e709464dc71e4cb502fa0cf /cpp/rubygen/cppgen.rb
parent029c638fd23d3e53a58ca521209ae62057e59689 (diff)
downloadqpid-python-cd6b4ba256effcf6c3e3f69a74e51d82c579e2ea.tar.gz
Generate boost::variants for each class. Not yet used on trunk.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@562255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen/cppgen.rb')
-rwxr-xr-xcpp/rubygen/cppgen.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/cpp/rubygen/cppgen.rb b/cpp/rubygen/cppgen.rb
index b5f4758411..46703588c1 100755
--- a/cpp/rubygen/cppgen.rb
+++ b/cpp/rubygen/cppgen.rb
@@ -68,6 +68,12 @@ class AmqpMethod
def body_name() @cache_body_name ||= amqp_parent.name.caps+name.caps+"Body"; end
end
+# Additional methods for AmqpClass
+class AmqpClass
+ def cppname() @cache_cppname ||= name.caps; end
+ def body_name() @cache_body_name ||= name.caps+"Body"; end
+end
+
# Additional methos for AmqpRoot
class AmqpRoot
# FIXME aconway 2007-06-20: fix u_int types, should be uint
@@ -93,11 +99,6 @@ class AmqpRoot
def return_type(amqptype) t=lookup(amqptype); t[2] or t[0]; end
end
-# Additional methods for AmqpClass
-class AmqpClass
- def cppname() @cache_cppname ||= name.caps; end
-end
-
class CppGen < Generator
def initialize(outdir, *specs)
super(outdir,*specs)