diff options
author | Alan Conway <aconway@apache.org> | 2009-04-23 11:48:32 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2009-04-23 11:48:32 +0000 |
commit | 9f9f598a5c969cdc43c6cf3ed9c4a309c5933ab5 (patch) | |
tree | 2fdfd65464383b6a10d0a3c615894a140749ed8b /cpp/rubygen | |
parent | bd9912920df4f4ac39b957633344aec8d87e22b1 (diff) | |
download | qpid-python-9f9f598a5c969cdc43c6cf3ed9c4a309c5933ab5.tar.gz |
Apply PIMPL pattern to client::Completion and client::Future.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@767896 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/rubygen')
-rw-r--r-- | cpp/rubygen/framing.0-10/Session.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cpp/rubygen/framing.0-10/Session.rb b/cpp/rubygen/framing.0-10/Session.rb index 5abed07150..48a1608af0 100644 --- a/cpp/rubygen/framing.0-10/Session.rb +++ b/cpp/rubygen/framing.0-10/Session.rb @@ -163,6 +163,7 @@ class SessionNoKeywordGen < CppGen include "qpid/client/SessionImpl.h" include "qpid/client/MessageImpl.h" include "qpid/client/PrivateImplPrivate.h" + include "qpid/client/CompletionImpl.h" namespace(@namespace) { genl "using namespace framing;" session_methods(sync_default).each { |m| @@ -175,7 +176,7 @@ class SessionNoKeywordGen < CppGen genl "body.setSync(sync);" sendargs="body" sendargs << ", *privateImplGetPtr(content)" if m.content - async_retval="#{m.return_type(true)}(impl->send(#{sendargs}), impl)" + async_retval="#{m.return_type(true)}(new CompletionImpl(impl->send(#{sendargs}), impl))" if @async then genl "return #{async_retval};" else |