summaryrefslogtreecommitdiff
path: root/qpid/cpp/rubygen/0-10
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
committerAlan Conway <aconway@apache.org>2011-07-28 18:28:56 +0000
commit95ad2adfc443b227eba224279188c36906c1db66 (patch)
tree14c91400e2284b2c4f782d203a60d44dbee31f9e /qpid/cpp/rubygen/0-10
parent8db25489a2971803b21d73814521b40731111bd5 (diff)
downloadqpid-python-qpid-3163.tar.gz
Merge branch 'visibility-hidden' into qpid-3163qpid-3163
git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/qpid-3163@1151956 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/cpp/rubygen/0-10')
-rwxr-xr-xqpid/cpp/rubygen/0-10/exceptions.rb11
1 files changed, 6 insertions, 5 deletions
diff --git a/qpid/cpp/rubygen/0-10/exceptions.rb b/qpid/cpp/rubygen/0-10/exceptions.rb
index 02e3a5d547..726f2fc4fb 100755
--- a/qpid/cpp/rubygen/0-10/exceptions.rb
+++ b/qpid/cpp/rubygen/0-10/exceptions.rb
@@ -33,7 +33,8 @@ class GenExceptions < CppGen
name=c.name.typename+suffix+"Exception"
genl
doxygen_comment { genl c.doc }
- struct(name, "public #{base}") {
+ cpp_extern_class("QPID_COMMON_CLASS_EXTERN", name, "public #{base}") {
+ public
genl "#{name}(const std::string& msg=std::string())"
genl " : #{base}(#{ns}::#{c.name.shout}, msg) {}"
protected
@@ -41,11 +42,11 @@ class GenExceptions < CppGen
}
}
end
-
+
def gen_exceptions()
- h_file("#{@dir}/exceptions") {
+ h_file("#{@dir}/exceptions") {
include "qpid/amqp_0_10/Exception"
- namespace("#{@ns}") {
+ namespace("#{@ns}") {
error_code = @amqp.class_("execution").domain("error-code").enum
exceptions_for_enum(error_code, "SessionAbortedException", "execution")
genl
@@ -62,7 +63,7 @@ class GenExceptions < CppGen
}
}
end
-
+
def generate()
gen_exceptions
end