]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp
ICU-6.2.4.tar.gz
[apple/icu.git] / icuSources / samples / xml2txt / DOMTreeErrorReporter.hpp
diff --git a/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp b/icuSources/samples/xml2txt/DOMTreeErrorReporter.hpp
deleted file mode 100644 (file)
index daf4596..0000000
+++ /dev/null
@@ -1,51 +0,0 @@
-/******************************************************************************
- * Copyright (C) 2002, International Business Machines Corporation and
- * others. All Rights Reserved.
- ******************************************************************************/
-#include <util/XercesDefs.hpp>
-#include <sax/ErrorHandler.hpp>
-#include <iostream.h>
-
-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;
-}