summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/proxy/TestAMDI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-01 17:36:19 +0100
committerJose <jose@zeroc.com>2015-12-01 17:36:19 +0100
commit2029ff368e49fae489b8ec8fc12f7d126b182dfb (patch)
tree6075d652b7851831c39e6f22004d8720864f1a60 /cpp/test/Ice/proxy/TestAMDI.cpp
parentThe default LMDB map size for IceGrid and IceStorm is now 10MB (Windows) (diff)
downloadice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.tar.bz2
ice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.tar.xz
ice-2029ff368e49fae489b8ec8fc12f7d126b182dfb.zip
C++11 mapping initial commit
Diffstat (limited to 'cpp/test/Ice/proxy/TestAMDI.cpp')
-rw-r--r--cpp/test/Ice/proxy/TestAMDI.cpp40
1 files changed, 38 insertions, 2 deletions
diff --git a/cpp/test/Ice/proxy/TestAMDI.cpp b/cpp/test/Ice/proxy/TestAMDI.cpp
index 401f276292c..54098ebd7ae 100644
--- a/cpp/test/Ice/proxy/TestAMDI.cpp
+++ b/cpp/test/Ice/proxy/TestAMDI.cpp
@@ -11,10 +11,42 @@
#include <TestAMDI.h>
#include <TestCommon.h>
+using namespace std;
+
MyDerivedClassI::MyDerivedClassI()
{
}
+#ifdef ICE_CPP11_MAPPING
+void
+MyDerivedClassI::echo_async(
+ const shared_ptr<Ice::ObjectPrx>& obj,
+ function<void (const shared_ptr<Ice::ObjectPrx>&)> response,
+ function<void (const exception_ptr&)>,
+ const Ice::Current&)
+{
+ response(obj);
+}
+
+void
+MyDerivedClassI::shutdown_async(
+ function<void ()> response,
+ function<void (const exception_ptr&)>,
+ const Ice::Current& current)
+{
+ current.adapter->getCommunicator()->shutdown();
+ response();
+}
+
+void
+MyDerivedClassI::getContext_async(
+ function<void (const Ice::Context&)> response,
+ function<void (const exception_ptr&)>,
+ const Ice::Current&)
+{
+ response(_ctx);
+}
+#else
void
MyDerivedClassI::echo_async(const Test::AMD_MyDerivedClass_echoPtr& cb, const Ice::ObjectPrx& obj, const Ice::Current&)
{
@@ -33,10 +65,14 @@ MyDerivedClassI::getContext_async(const Test::AMD_MyClass_getContextPtr& cb, con
{
cb->ice_response(_ctx);
}
-
+#endif
bool
-MyDerivedClassI::ice_isA(const std::string& s, const Ice::Current& current) const
+MyDerivedClassI::ice_isA(const string& s, const Ice::Current& current) const
{
_ctx = current.ctx;
+#ifdef ICE_CPP11_MAPPING
+ return Test::MyDerivedClassDisp::ice_isA(s, current);
+#else
return Test::MyDerivedClass::ice_isA(s, current);
+#endif
}