Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members

LCD_DocErrorReporter.cc

Go to the documentation of this file.
00001 // $Id: LCD_DocErrorReporter.cc,v 1.11 2004/02/02 22:12:48 uid561 Exp $
00002 //
00003 // Implementation of parse error reporting for LCD (xml) documents
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 // Do I want extern here??
00015 // extern XMLStdOut   outStrm;
00016 //extern XMLStdErr   lcdErrStrm;
00017 
00018 /*
00019  * Comment
00020  */
00021 void LCD_DocErrorReporter::warning(const SAXParseException&)
00022 {
00023   //
00024   // Ignore all warnings.
00025   //
00026   nWarning++;
00027 }
00028 
00029 /*
00030  * Comment
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  * Comment
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  * Comment
00058  */
00059 void LCD_DocErrorReporter::resetErrors()
00060 {
00061   nWarning = nError = nFatal = 0;
00062 }

Generated on Thu Oct 7 18:44:46 2004 for LCDG4 by doxygen 1.3.4