summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/objects/TestIntfI.cpp
diff options
context:
space:
mode:
authorJose <jose@zeroc.com>2015-12-28 14:15:32 +0100
committerJose <jose@zeroc.com>2015-12-28 14:15:32 +0100
commitba39ff673427fb8ba7bda2dba0381df626799ca0 (patch)
tree693559d12203cbdc55e34101505015bf625a4762 /cpp/test/Ice/objects/TestIntfI.cpp
parentFix website links (diff)
downloadice-ba39ff673427fb8ba7bda2dba0381df626799ca0.tar.bz2
ice-ba39ff673427fb8ba7bda2dba0381df626799ca0.tar.xz
ice-ba39ff673427fb8ba7bda2dba0381df626799ca0.zip
Object factory registration fix for VS 2015
Diffstat (limited to 'cpp/test/Ice/objects/TestIntfI.cpp')
-rw-r--r--cpp/test/Ice/objects/TestIntfI.cpp33
1 files changed, 33 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/TestIntfI.cpp b/cpp/test/Ice/objects/TestIntfI.cpp
new file mode 100644
index 00000000000..e4e393b1b3e
--- /dev/null
+++ b/cpp/test/Ice/objects/TestIntfI.cpp
@@ -0,0 +1,33 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved.
+//
+// This copy of Ice is licensed to you under the terms described in the
+// ICE_LICENSE file included in this distribution.
+//
+// **********************************************************************
+
+#include <Ice/Ice.h>
+#include <TestI.h>
+#include <Derived.h>
+#include <DerivedEx.h>
+
+using namespace Test;
+
+BasePtr
+TestIntfI::opDerived(const Ice::Current&)
+{
+ DerivedPtr d = new Derived();
+ d->theS.str = "S.str";
+ d->str = "str";
+ d->b = "b";
+ return d;
+}
+
+void
+TestIntfI::throwDerived(const Ice::Current&)
+{
+ DerivedEx ex;
+ ex.reason = "reason";
+ throw ex;
+}