te::xerces::ErrorHandler Class Reference

This class implements Xerces interface for error handlers. More...

#include <ErrorHandler.h>

Inheritance diagram for te::xerces::ErrorHandler:

Public Member Functions

void error (const xercesc::SAXParseException &exc)
 It receives from the parser a notification of a recoverable error. More...
 
 ErrorHandler ()
 Default constructor. More...
 
void fatalError (const xercesc::SAXParseException &exc)
 It receives from the parser a notification of a non-recoverable error. More...
 
const std::string & getError (std::size_t i) const
 It returns the n-th error message. More...
 
const std::string getErrors () const
 It returns a concatenation of all reported error messages. More...
 
const std::size_t getNumErros () const
 It returns the number of reported errors. More...
 
void resetErrors ()
 
void warning (const xercesc::SAXParseException &exc)
 It receives from the parser a notification of a warning. More...
 
 ~ErrorHandler ()
 Destructor. More...
 

Protected Attributes

std::vector< std::string > m_errors
 The error messages. More...
 

Detailed Description

This class implements Xerces interface for error handlers.

See also
Reader, ReaderHandler

Definition at line 50 of file ErrorHandler.h.

Constructor & Destructor Documentation

te::xerces::ErrorHandler::ErrorHandler ( )
inline

Default constructor.

Definition at line 55 of file ErrorHandler.h.

te::xerces::ErrorHandler::~ErrorHandler ( )
inline

Destructor.

Definition at line 58 of file ErrorHandler.h.

Member Function Documentation

void te::xerces::ErrorHandler::error ( const xercesc::SAXParseException &  exc)

It receives from the parser a notification of a recoverable error.

Parameters
excThe error information.
void te::xerces::ErrorHandler::fatalError ( const xercesc::SAXParseException &  exc)

It receives from the parser a notification of a non-recoverable error.

Parameters
excThe error information.
const std::string& te::xerces::ErrorHandler::getError ( std::size_t  i) const

It returns the n-th error message.

Parameters
iThe error message position in the internal conteiner.
Returns
The n-th error message.
Note
This method doesn't check the index range.
const std::string te::xerces::ErrorHandler::getErrors ( ) const

It returns a concatenation of all reported error messages.

Returns
A concatenation of all reported error messages.
const std::size_t te::xerces::ErrorHandler::getNumErros ( ) const

It returns the number of reported errors.

Returns
The number of reported errors.
void te::xerces::ErrorHandler::resetErrors ( )

brief It resets the error handler object on its reuse.

void te::xerces::ErrorHandler::warning ( const xercesc::SAXParseException &  exc)

It receives from the parser a notification of a warning.

Parameters
excThe warning information.

Member Data Documentation

std::vector<std::string> te::xerces::ErrorHandler::m_errors
protected

The error messages.

Definition at line 111 of file ErrorHandler.h.


The documentation for this class was generated from the following file: