summaryrefslogtreecommitdiff
path: root/cpp/src/XMLTransform/ErrorReporter.h
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2002-08-27 18:49:06 +0000
committerMark Spruiell <mes@zeroc.com>2002-08-27 18:49:06 +0000
commit7659b5f58e04b75d5142e419023976b1235a68f6 (patch)
tree30bc2fa144504d994cde083c8cb29b1c88ecaaf8 /cpp/src/XMLTransform/ErrorReporter.h
parentadding escapes for references, identity (diff)
downloadice-7659b5f58e04b75d5142e419023976b1235a68f6.tar.bz2
ice-7659b5f58e04b75d5142e419023976b1235a68f6.tar.xz
ice-7659b5f58e04b75d5142e419023976b1235a68f6.zip
adding XMLTransform
Diffstat (limited to 'cpp/src/XMLTransform/ErrorReporter.h')
-rw-r--r--cpp/src/XMLTransform/ErrorReporter.h50
1 files changed, 50 insertions, 0 deletions
diff --git a/cpp/src/XMLTransform/ErrorReporter.h b/cpp/src/XMLTransform/ErrorReporter.h
new file mode 100644
index 00000000000..8f65786c864
--- /dev/null
+++ b/cpp/src/XMLTransform/ErrorReporter.h
@@ -0,0 +1,50 @@
+// **********************************************************************
+//
+// Copyright (c) 2002
+// Mutable Realms, Inc.
+// Huntsville, AL, USA
+//
+// All Rights Reserved
+//
+// **********************************************************************
+
+#ifndef ERROR_REPORTER_H
+#define ERROR_REPORTER_H
+
+#include <sax/ErrorHandler.hpp>
+#include <sax/SAXParseException.hpp>
+#include <dom/DOMString.hpp>
+
+#include <string>
+
+namespace XMLTransform
+{
+
+class DOMTreeErrorReporter : public ErrorHandler
+{
+public:
+
+ DOMTreeErrorReporter();
+
+ void warning(const SAXParseException&);
+
+ void error(const SAXParseException&);
+
+ void fatalError(const SAXParseException&);
+
+ void resetErrors();
+
+ bool getSawErrors() const;
+
+ ::std::string getErrors() const;
+
+private:
+
+ ::std::string _errors;
+
+ ::std::string toString(const DOMString&);
+};
+
+}
+
+#endif