summaryrefslogtreecommitdiff
path: root/cppe/test/IceE/custom/WstringI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cppe/test/IceE/custom/WstringI.cpp')
-rw-r--r--cppe/test/IceE/custom/WstringI.cpp64
1 files changed, 64 insertions, 0 deletions
diff --git a/cppe/test/IceE/custom/WstringI.cpp b/cppe/test/IceE/custom/WstringI.cpp
new file mode 100644
index 00000000000..acda01c8d7a
--- /dev/null
+++ b/cppe/test/IceE/custom/WstringI.cpp
@@ -0,0 +1,64 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2006 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 <WstringI.h>
+
+::std::wstring
+Test1::WstringClassI::opString(const ::std::wstring& s1,
+ ::std::wstring& s2,
+ const Ice::Current& current)
+{
+ s2 = s1;
+ return s1;
+}
+
+::Test1::WstringStruct
+Test1::WstringClassI::opStruct(const ::Test1::WstringStruct& s1,
+ ::Test1::WstringStruct& s2,
+ const Ice::Current& current)
+{
+ s2 = s1;
+ return s1;
+}
+
+void
+Test1::WstringClassI::throwExcept(const ::std::wstring& reason,
+ const Ice::Current& current)
+{
+ Test1::WstringException ex;
+ ex.reason = reason;
+ throw ex;
+}
+
+::std::wstring
+Test2::WstringClassI::opString(const ::std::wstring& s1,
+ ::std::wstring& s2,
+ const Ice::Current& current)
+{
+ s2 = s1;
+ return s1;
+}
+
+::Test2::WstringStruct
+Test2::WstringClassI::opStruct(const ::Test2::WstringStruct& s1,
+ ::Test2::WstringStruct& s2,
+ const Ice::Current& current)
+{
+ s2 = s1;
+ return s1;
+}
+
+void
+Test2::WstringClassI::throwExcept(const ::std::wstring& reason,
+ const Ice::Current& current)
+{
+ Test2::WstringException ex;
+ ex.reason = reason;
+ throw ex;
+}