diff options
Diffstat (limited to 'cpp/src/IceSSL/ConfigParserErrorReporter.h')
-rw-r--r-- | cpp/src/IceSSL/ConfigParserErrorReporter.h | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/cpp/src/IceSSL/ConfigParserErrorReporter.h b/cpp/src/IceSSL/ConfigParserErrorReporter.h deleted file mode 100644 index 3b14dd07c5e..00000000000 --- a/cpp/src/IceSSL/ConfigParserErrorReporter.h +++ /dev/null @@ -1,55 +0,0 @@ -// ********************************************************************** -// -// Copyright (c) 2003 -// ZeroC, Inc. -// Billerica, MA, USA -// -// All Rights Reserved. -// -// Ice is free software; you can redistribute it and/or modify it under -// the terms of the GNU General Public License version 2 as published by -// the Free Software Foundation. -// -// ********************************************************************** - -#ifndef ICE_SSL_CONFIG_ERROR_REPORTER_H -#define ICE_SSL_CONFIG_ERROR_REPORTER_H - -#include <Ice/LoggerF.h> -#include <IceSSL/TraceLevelsF.h> - -#include <Ice/Xerces.h> -#include <xercesc/sax/ErrorHandler.hpp> - -namespace IceSSL -{ - -class ConfigParserErrorReporter : public ICE_XERCES_NS ErrorHandler -{ -public: - - ConfigParserErrorReporter(const IceSSL::TraceLevelsPtr&, const Ice::LoggerPtr&); - ~ConfigParserErrorReporter(); - - // Implementation of the error handler interface. - void warning(const ICE_XERCES_NS SAXParseException& toCatch); - void error(const ICE_XERCES_NS SAXParseException& toCatch); - void fatalError(const ICE_XERCES_NS SAXParseException& toCatch); - void resetErrors(); - - bool getSawErrors() const; - std::string getErrors() const; - -private: - - IceSSL::TraceLevelsPtr _traceLevels; - Ice::LoggerPtr _logger; - - // Any errors that are encountered will be output to this stream. - std::ostringstream _errors; - int _errorCount; -}; - -} - -#endif |