diff options
author | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
---|---|---|
committer | Matthew Newhook <matthew@zeroc.com> | 2015-03-18 12:58:16 -0230 |
commit | 9b7668c7c92cf9cb311fe444cdddb489cd2a219d (patch) | |
tree | 5016567c58c81f5654e9d01935e199c6bf4761d2 /cpp/demo/Ice/plugin/LoggerPluginI.cpp | |
parent | VS add-in & build updates: (diff) | |
download | ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.bz2 ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.tar.xz ice-9b7668c7c92cf9cb311fe444cdddb489cd2a219d.zip |
Removed demos.
Moved demoscript to distribution.
Diffstat (limited to 'cpp/demo/Ice/plugin/LoggerPluginI.cpp')
-rw-r--r-- | cpp/demo/Ice/plugin/LoggerPluginI.cpp | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/cpp/demo/Ice/plugin/LoggerPluginI.cpp b/cpp/demo/Ice/plugin/LoggerPluginI.cpp deleted file mode 100644 index 292818dc04e..00000000000 --- a/cpp/demo/Ice/plugin/LoggerPluginI.cpp +++ /dev/null @@ -1,69 +0,0 @@ -// ********************************************************************** -// -// 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> - -using namespace std; - -namespace -{ - -class LoggerI : public Ice::Logger -{ -public: - - virtual void - print(const string& message) - { - cout << "PRINT: " << message << endl; - } - - virtual void - trace(const string& category, const string& message) - { - cout << "TRACE(" << category << "): " << message << endl; - } - - virtual void - warning(const string& message) - { - cout << "WARNING: " << message << endl; - } - - virtual void - error(const string& message) - { - cout << "ERROR: " << message << endl; - } - - virtual string - getPrefix() - { - return ""; - } - - virtual Ice::LoggerPtr - cloneWithPrefix(const std::string&) - { - return new LoggerI; - } -}; - -} - -extern "C" -{ - -ICE_DECLSPEC_EXPORT ::Ice::Plugin* -createLogger(const Ice::CommunicatorPtr& communicator, const string&, const Ice::StringSeq&) -{ - return new Ice::LoggerPlugin(communicator, new LoggerI); -} - -} |