blob: 77a46d84e6c354a3f150ef59cf543a81d40d2fc3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_
#define INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_
#include <xercesc/sax/ErrorHandler.hpp>
#include <memory>
#include <vector>
#include <string>
namespace InputXSLT {
class ErrorHandler : public xercesc::ErrorHandler {
public:
typedef std::vector<std::string> error_cache;
typedef std::unique_ptr<error_cache> error_cache_ptr;
ErrorHandler();
virtual void warning(const xercesc::SAXParseException&);
virtual void error(const xercesc::SAXParseException&);
virtual void fatalError(const xercesc::SAXParseException&);
virtual void resetErrors();
error_cache_ptr getCachedErrors();
private:
error_cache_ptr error_cache_;
void constructErrorCache();
};
}
#endif // INPUTXSLT_SRC_SUPPORT_ERROR_HANDLER_H_
|