TSPLIB
Public Member Functions | Private Member Functions | Private Attributes
SAX2ErrorHandler Class Reference

#include <ValidateSAX2ErrorHandler.hpp>

List of all members.

Public Member Functions

 SAX2ErrorHandler ()
 ~SAX2ErrorHandler ()
bool getFailed ()
void warning (const SAXParseException &exc)
void error (const SAXParseException &exc)
void fatalError (const SAXParseException &exc)
void resetErrors ()

Private Member Functions

 SAX2ErrorHandler (const SAX2ErrorHandler &sAXErrorHandler)
SAX2ErrorHandleroperator= (const SAX2ErrorHandler &sAXErrorHandler)

Private Attributes

bool failed

Detailed Description

Implements an ErrorHandler

Definition at line 24 of file ValidateSAX2ErrorHandler.hpp.


Constructor & Destructor Documentation

SAX2ErrorHandler::SAX2ErrorHandler ( const SAX2ErrorHandler sAXErrorHandler) [private]

Not implemented copy constructor for the class SAX2ErrorHandler.

Parameters:
sAXErrorHandlerInstance to be copied.

Constructor for the class SAXErrorHandler.

Definition at line 14 of file ValidateSAX2ErrorHandler.cpp.

References failed.

Destructor for the class SAXErrorHandler.

Definition at line 18 of file ValidateSAX2ErrorHandler.cpp.


Member Function Documentation

void SAX2ErrorHandler::error ( const SAXParseException &  exc)

Error handling interface for errors. The method does nothing.

Parameters:
excError.

Definition at line 25 of file ValidateSAX2ErrorHandler.cpp.

References failed.

void SAX2ErrorHandler::fatalError ( const SAXParseException &  exc)

Error handling interface for fatal errors. The method does nothing

Parameters:
excFatal error.

Definition at line 29 of file ValidateSAX2ErrorHandler.cpp.

References failed.

bool SAX2ErrorHandler::getFailed ( ) [inline]

Returns true if the last validation failed

Returns:
  • true if the last validation failed
  • false if the last validation failed

Definition at line 63 of file ValidateSAX2ErrorHandler.hpp.

Referenced by instanceIn().

SAX2ErrorHandler& SAX2ErrorHandler::operator= ( const SAX2ErrorHandler sAXErrorHandler) [private]

Not implemented operator "=".

Parameters:
sAXErrorHandlerRight side of the operator.
Returns:
Left side of the operator.

Reset the Error handler object on its reuse. The method does nothing.

Definition at line 33 of file ValidateSAX2ErrorHandler.cpp.

References failed.

void SAX2ErrorHandler::warning ( const SAXParseException &  exc)

Error handling interface for warnings. The method does nothing.

Parameters:
excWarning.

Definition at line 21 of file ValidateSAX2ErrorHandler.cpp.

References failed.


Member Data Documentation

bool SAX2ErrorHandler::failed [private]

True if a validation fails.

Definition at line 29 of file ValidateSAX2ErrorHandler.hpp.

Referenced by error(), fatalError(), resetErrors(), SAX2ErrorHandler(), and warning().


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Friends Defines