X-Git-Url: https://git.saurik.com/apple/icu.git/blobdiff_plain/b75a7d8f3b4adbae880cab104ce2c6a50eee4db2..374ca955a76ecab1204ca8bfa63ff9238d998416:/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp diff --git a/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp b/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp deleted file mode 100644 index daf45966..00000000 --- a/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp +++ /dev/null @@ -1,51 +0,0 @@ -/****************************************************************************** - * Copyright (C) 2002, International Business Machines Corporation and - * others. All Rights Reserved. - ******************************************************************************/ -#include -#include -#include - -class DOMTreeErrorReporter : public ErrorHandler -{ -public: - // ----------------------------------------------------------------------- - // Constructors and Destructor - // ----------------------------------------------------------------------- - DOMTreeErrorReporter() : - fSawErrors(false) - { - } - - ~DOMTreeErrorReporter() - { - } - - // ----------------------------------------------------------------------- - // Implementation of the error handler interface - // ----------------------------------------------------------------------- - void warning(const SAXParseException& toCatch); - void error(const SAXParseException& toCatch); - void fatalError(const SAXParseException& toCatch); - void resetErrors(); - - // ----------------------------------------------------------------------- - // Getter methods - // ----------------------------------------------------------------------- - bool getSawErrors() const; - - // ----------------------------------------------------------------------- - // Private data members - // - // fSawErrors - // This is set if we get any errors, and is queryable via a getter - // method. Its used by the main code to suppress output if there are - // errors. - // ----------------------------------------------------------------------- - bool fSawErrors; -}; - -inline bool DOMTreeErrorReporter::getSawErrors() const -{ - return fSawErrors; -}