summaryrefslogtreecommitdiff
path: root/cpp/src/Ice/IconvStringConverter.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/src/Ice/IconvStringConverter.cpp')
-rw-r--r--cpp/src/Ice/IconvStringConverter.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/cpp/src/Ice/IconvStringConverter.cpp b/cpp/src/Ice/IconvStringConverter.cpp
new file mode 100644
index 00000000000..7414d03f9be
--- /dev/null
+++ b/cpp/src/Ice/IconvStringConverter.cpp
@@ -0,0 +1,56 @@
+// **********************************************************************
+//
+// Copyright (c) 2003-2016 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/IconvStringConverter.h>
+
+#ifndef _WIN32
+
+using namespace std;
+using namespace Ice;
+using namespace IceUtil;
+
+IconvInitializationException::IconvInitializationException(const char* file, int line, const string& reason) :
+ ExceptionHelper<IconvInitializationException>(file, line),
+ _reason(reason)
+{
+}
+
+#ifndef ICE_CPP11_COMPILER
+IconvInitializationException::~IconvInitializationException() throw()
+{
+}
+#endif
+
+void
+IconvInitializationException::ice_print(ostream& out) const
+{
+ IceUtil::Exception::ice_print(out);
+ out << ": " << _reason;
+}
+
+string
+IconvInitializationException::ice_id() const
+{
+ return "::Ice::IconvInitializationException";
+}
+
+#ifndef ICE_CPP11_MAPPING
+IconvInitializationException*
+IconvInitializationException::ice_clone() const
+{
+ return new IconvInitializationException(*this);
+}
+#endif
+
+string
+IconvInitializationException::reason() const
+{
+ return _reason;
+}
+#endif