|
OpenASIP 2.2
|
#include <DOMBuilderErrorHandler.hh>


Public Member Functions | |
| DOMBuilderErrorHandler () | |
| virtual | ~DOMBuilderErrorHandler () |
| bool | handleError (const DOMError &domError) |
| int | errorCount () const |
| std::string | errorLog () const |
Private Attributes | |
| int | errorCount_ |
| Number of errors handled. | |
| std::string | errorLog_ |
| Error log. | |
Error handler used when validating XML files by XMLSerializer.
Definition at line 47 of file DOMBuilderErrorHandler.hh.
| DOMBuilderErrorHandler::DOMBuilderErrorHandler | ( | ) |
Constructor.
Definition at line 42 of file DOMBuilderErrorHandler.cc.
|
virtual |
| int DOMBuilderErrorHandler::errorCount | ( | ) | const |
Returns the number of errors handled.
Definition at line 91 of file DOMBuilderErrorHandler.cc.
References errorCount_.
Referenced by XMLSerializer::readFile(), and XMLSerializer::readString().
| string DOMBuilderErrorHandler::errorLog | ( | ) | const |
Returns the error log.
Definition at line 102 of file DOMBuilderErrorHandler.cc.
References errorLog_.
Referenced by XMLSerializer::readFile(), and XMLSerializer::readString().
| bool DOMBuilderErrorHandler::handleError | ( | const DOMError & | domError | ) |
Handler function to process errors that occur while building DOM documents.
Stores information to locate the error (URI, line number, column, diagnostic message) passed by a DOM builder to an error log. Called by DOMBuilder::parseURI.
| domError | Error generated by DOM builder. |
Definition at line 66 of file DOMBuilderErrorHandler.cc.
References errorCount_, errorLog_, Conversion::toString(), and Conversion::XMLChToString().

|
private |
Number of errors handled.
Definition at line 58 of file DOMBuilderErrorHandler.hh.
Referenced by errorCount(), and handleError().
|
private |
Error log.
Definition at line 60 of file DOMBuilderErrorHandler.hh.
Referenced by errorLog(), and handleError().