diff options
| author | Alan Conway <aconway@apache.org> | 2011-07-28 18:28:56 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2011-07-28 18:28:56 +0000 |
| commit | 95ad2adfc443b227eba224279188c36906c1db66 (patch) | |
| tree | 14c91400e2284b2c4f782d203a60d44dbee31f9e /qpid/cpp/rubygen/0-10 | |
| parent | 8db25489a2971803b21d73814521b40731111bd5 (diff) | |
| download | qpid-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-x | qpid/cpp/rubygen/0-10/exceptions.rb | 11 |
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 |
