TSPLIB
src/TransformDOMErrorHandler.cpp
Go to the documentation of this file.
00001 
00012 #include <xercesc/dom/DOMError.hpp>
00013 
00014 #include "TransformDOMErrorHandler.hpp"
00015 
00016 
00017 TransformDOMErrorHandler::TransformDOMErrorHandler(): DOMErrorHandler() {
00018 }
00019 
00020 TransformDOMErrorHandler::~TransformDOMErrorHandler() {
00021 }
00022 
00023 bool TransformDOMErrorHandler::handleError(const DOMError &dOMError) {
00024         switch (dOMError.getSeverity()) {
00025         case DOMError::DOM_SEVERITY_WARNING:
00026         case DOMError::DOM_SEVERITY_ERROR:
00027         case DOMError::DOM_SEVERITY_FATAL_ERROR:
00028                 return (false);  // Instructs the serializer to do not continue.
00029         default:
00030                 return (false);  // Instructs the serializer to do not continue.
00031         }
00032 }
 All Classes Files Functions Variables Friends Defines