From 9f9f598a5c969cdc43c6cf3ed9c4a309c5933ab5 Mon Sep 17 00:00:00 2001 From: Alan Conway Date: Thu, 23 Apr 2009 11:48:32 +0000 Subject: 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 --- cpp/rubygen/framing.0-10/Session.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'cpp/rubygen') 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 -- cgit v1.2.1