39 #ifndef OME_COMMON_XML_ERRORREPORTER_H
40 #define OME_COMMON_XML_ERRORREPORTER_H
45 #include <xercesc/sax/ErrorHandler.hpp>
81 void warning(
const xercesc::SAXParseException& toCatch);
88 void error(
const xercesc::SAXParseException& toCatch);
95 void fatalError(
const xercesc::SAXParseException& toCatch);
116 operator bool()
const
126 #endif // OME_COMMON_XML_ERRORREPORTER_H
~ErrorReporter()
The destructor.
Definition: ErrorReporter.cpp:59
void error(const xercesc::SAXParseException &toCatch)
Log an error.
Definition: ErrorReporter.cpp:73
void fatalError(const xercesc::SAXParseException &toCatch)
Log a fatal error.
Definition: ErrorReporter.cpp:83
Xerces error handler reporting errors to an ostream.
Definition: ErrorReporter.h:63
Open Microscopy Environment C++ implementation.
Definition: CoreMetadata.cpp:40
void warning(const xercesc::SAXParseException &toCatch)
Log a warning.
Definition: ErrorReporter.cpp:64
bool saw_error
Has an error been encountered?
Definition: ErrorReporter.h:108
void resetErrors()
Reset error status.
Definition: ErrorReporter.cpp:93
ErrorReporter(std::ostream &stream=std::cerr)
Construct an ErrorReporter.
Definition: ErrorReporter.cpp:53
Xerces-C modern C++ wrapper.
Definition: Base.h:53
std::ostream & stream
The output stream to use.
Definition: ErrorReporter.h:106