19#include <xercesc/sax2/Attributes.hpp>
20#include <xercesc/sax2/DefaultHandler.hpp>
21#include <xercesc/sax/SAXParseException.hpp>
44 const XMLCh*
const qname,
const xercesc::Attributes& attrs)
override
50 const XMLCh*
const qname)
override
60 void fatalError(
const xercesc::SAXParseException& e)
override
65 void error(
const xercesc::SAXParseException& e)
override
70 void warning(
const xercesc::SAXParseException& e)
override
76 static std::string
message_(
const xercesc::SAXParseException& e)
char16_t XMLCh
Definition ClassTest.h:30
Adapts an OpenMS XMLHandler to the Xerces SAX2 DefaultHandler interface.
Definition SAX2HandlerAdapter.h:39
void error(const xercesc::SAXParseException &e) override
Definition SAX2HandlerAdapter.h:65
void warning(const xercesc::SAXParseException &e) override
Definition SAX2HandlerAdapter.h:70
static std::string message_(const xercesc::SAXParseException &e)
Definition SAX2HandlerAdapter.h:76
SAX2HandlerAdapter(XMLHandler &handler)
Definition SAX2HandlerAdapter.h:41
XMLHandler & handler_
Definition SAX2HandlerAdapter.h:81
void characters(const XMLCh *const chars, const XMLSize_t length) override
Definition SAX2HandlerAdapter.h:55
void endElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname) override
Definition SAX2HandlerAdapter.h:49
void startElement(const XMLCh *const, const XMLCh *const, const XMLCh *const qname, const xercesc::Attributes &attrs) override
Definition SAX2HandlerAdapter.h:43
void fatalError(const xercesc::SAXParseException &e) override
Definition SAX2HandlerAdapter.h:60
static XercesString convert(const char *str)
Transcode the supplied C string to a UTF-16 string.
Xerces-free, lightweight view over the attribute list of an XML element.
Definition XMLAttributes.h:32
Base class for XML handlers.
Definition XMLHandler.h:42
void warning(ActionMode mode, const std::string &msg, UInt line=0, UInt column=0) const
Warning handler.
virtual void onCharacters(const char16_t *chars, Size length)
Parsing method for character data.
void fatalError(ActionMode mode, const std::string &msg, UInt line=0, UInt column=0) const
Fatal error handler. Throws a ParseError exception.
@ LOAD
Loading a file.
Definition XMLHandler.h:60
virtual void onStartElement(const char16_t *qname, const XMLAttributes &attributes)
Parsing method for opening tags.
void error(ActionMode mode, const std::string &msg, UInt line=0, UInt column=0) const
Error handler for recoverable errors.
virtual void onEndElement(const char16_t *qname)
Parsing method for closing tags.
unsigned int UInt
Unsigned integer type.
Definition Types.h:64
Namespace used to hide implementation details from users.
Definition BayesianProteinInferenceAlgorithm.h:26