List of all members | Public Member Functions | Private Attributes
utl::ReaderErrorReporter Class Reference

Reports errors encountered during XML parsing. More...

#include <ReaderErrorReporter.h>

Inheritance diagram for utl::ReaderErrorReporter:
Inheritance graph
[legend]

Public Member Functions

void error (const xercesc::SAXParseException &toCatch) override
 Collect errors during XML parsing. More...
 
void fatalError (const xercesc::SAXParseException &toCatch) override
 
const std::ostringstream & getMessages () const
 
bool getSawErrors () const
 
void resetErrors () override
 
void warning (const xercesc::SAXParseException &toCatch) override
 

Private Attributes

std::ostringstream fMessages
 
bool fSawErrors = false
 

Detailed Description

Reports errors encountered during XML parsing.

Author
T. Paul

Definition at line 23 of file ReaderErrorReporter.h.

Member Function Documentation

void utl::ReaderErrorReporter::error ( const xercesc::SAXParseException &  toCatch)
override

Collect errors during XML parsing.

Errors are gathered for each document, then evaluated by the Reader to decide what action to take.

Definition at line 24 of file ReaderErrorReporter.cc.

References fwk::AsString().

void utl::ReaderErrorReporter::fatalError ( const xercesc::SAXParseException &  toCatch)
override

Definition at line 36 of file ReaderErrorReporter.cc.

References fwk::AsString(), and ERROR.

const std::ostringstream& utl::ReaderErrorReporter::getMessages ( ) const
inline

Definition at line 31 of file ReaderErrorReporter.h.

References fMessages.

bool utl::ReaderErrorReporter::getSawErrors ( ) const
inline

Definition at line 30 of file ReaderErrorReporter.h.

References fSawErrors.

void utl::ReaderErrorReporter::resetErrors ( )
override

Definition at line 50 of file ReaderErrorReporter.cc.

void utl::ReaderErrorReporter::warning ( const xercesc::SAXParseException &  toCatch)
override

Definition at line 12 of file ReaderErrorReporter.cc.

Member Data Documentation

std::ostringstream utl::ReaderErrorReporter::fMessages
private

Definition at line 35 of file ReaderErrorReporter.h.

Referenced by getMessages().

bool utl::ReaderErrorReporter::fSawErrors = false
private

Definition at line 34 of file ReaderErrorReporter.h.

Referenced by getSawErrors().


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

, generated on Tue Sep 26 2023.