otsdaq  v1_01_04
 All Classes Namespaces Functions
DOMTreeErrorReporter.h
1 #ifndef ots_DOMTreeErrorReporter_h
2 #define ots_DOMTreeErrorReporter_h
3 
4 #include <xercesc/sax/ErrorHandler.hpp>
5 #include <xercesc/sax/SAXParseException.hpp>
6 #include <string>
7 
8 namespace ots
9 {
10 
11 class DOMTreeErrorReporter : public xercesc::ErrorHandler
12 {
13 public:
16 
17  void warning (const xercesc::SAXParseException& exception);
18  void error (const xercesc::SAXParseException& exception);
19  void fatalError (const xercesc::SAXParseException& exception);
20  void resetErrors(void);
21 private:
22  std::string reportParseException(const xercesc::SAXParseException& exception);
23 
24 };
25 
26 }
27 #endif