diff options
author | Bernard Normier <bernard@zeroc.com> | 2016-08-01 10:09:48 -0400 |
---|---|---|
committer | Bernard Normier <bernard@zeroc.com> | 2016-08-01 10:09:48 -0400 |
commit | 4aa7ae5129a9cb66f5ea26165310e96603af576c (patch) | |
tree | f8ee6859ad547b59cc28eadb1212f403f51dfff7 /cpp/src/Ice/IconvStringConverter.cpp | |
parent | Do not initialize OpenSSL locks if already done by other library. (diff) | |
download | ice-4aa7ae5129a9cb66f5ea26165310e96603af576c.tar.bz2 ice-4aa7ae5129a9cb66f5ea26165310e96603af576c.tar.xz ice-4aa7ae5129a9cb66f5ea26165310e96603af576c.zip |
Move StringConverter API to namespace Ice
Diffstat (limited to 'cpp/src/Ice/IconvStringConverter.cpp')
-rw-r--r-- | cpp/src/Ice/IconvStringConverter.cpp | 56 |
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 |