00001
00002
00003
00004
00005
00006
00007 #include "LCD_DocErrorReporter.hh"
00008 #include "xercesc/sax/SAXParseException.hpp"
00009 XERCES_CPP_NAMESPACE_USE
00010
00011 #include <iostream>
00012 using std::cout;
00013
00014
00015
00016
00017
00018
00019
00020
00021 void LCD_DocErrorReporter::warning(const SAXParseException&)
00022 {
00023
00024
00025
00026 nWarning++;
00027 }
00028
00029
00030
00031
00032 void LCD_DocErrorReporter::error(const SAXParseException& toCatch)
00033 {
00034 cout << "Error at file \"" << toCatch.getSystemId()
00035 << "\", line " << toCatch.getLineNumber()
00036 << ", column " << toCatch.getColumnNumber()
00037 << "\n Message: " << toCatch.getMessage()
00038 << "\n\n";
00039 nError++;
00040 }
00041
00042
00043
00044
00045
00046 void LCD_DocErrorReporter::fatalError(const SAXParseException& toCatch)
00047 {
00048 cout << "Fatal Error at file \"" << toCatch.getSystemId()
00049 << "\", line " << toCatch.getLineNumber()
00050 << ", column " << toCatch.getColumnNumber()
00051 << "\n Message: " << toCatch.getMessage()
00052 << "\n\n";
00053 nFatal++;
00054 }
00055
00056
00057
00058
00059 void LCD_DocErrorReporter::resetErrors()
00060 {
00061 nWarning = nError = nFatal = 0;
00062 }