summaryrefslogtreecommitdiff
path: root/qpid/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
commitc063a5a7ee8748b1d1921beb0bc435bcb9e0d924 (patch)
treecc8c9c98151a75aee98f698cc68830760c2b30a7 /qpid/cpp/rubygen/cppgen.rb
parent2c11eb5a8f0c49ce86b11bab2beae24f988e851f (diff)
downloadqpid-python-c063a5a7ee8748b1d1921beb0bc435bcb9e0d924.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@562255 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/cppgen.rb')
-rwxr-xr-xqpid/cpp/rubygen/cppgen.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/qpid/cpp/rubygen/cppgen.rb b/qpid/cpp/rubygen/cppgen.rb
index b5f4758411..46703588c1 100755
--- a/qpid/cpp/rubygen/cppgen.rb
+++ b/qpid/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)