summaryrefslogtreecommitdiffstats
path: root/Source/cmXMLParser.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2009-02-24 20:43:37 (GMT)
committerBrad King <brad.king@kitware.com>2009-02-24 20:43:37 (GMT)
commitd033f0d2d15ddc84b446da0012b809f6cba1597f (patch)
tree49d378d10f26d20109c1cf76d45933e9e7503a12 /Source/cmXMLParser.h
parent506e745c3744acdc9cb53f0cd71f6be306ce70a1 (diff)
downloadCMake-d033f0d2d15ddc84b446da0012b809f6cba1597f.zip
CMake-d033f0d2d15ddc84b446da0012b809f6cba1597f.tar.gz
CMake-d033f0d2d15ddc84b446da0012b809f6cba1597f.tar.bz2
ENH: Allow cmXMLParser subclasses to report errors
This tells cmXMLParser to report error messages through virtual method cmXMLParser::ReportError so that subclasses can override the default report.
Diffstat (limited to 'Source/cmXMLParser.h')
-rw-r--r--Source/cmXMLParser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmXMLParser.h b/Source/cmXMLParser.h
index 3580e8c..68def9e 100644
--- a/Source/cmXMLParser.h
+++ b/Source/cmXMLParser.h
@@ -91,6 +91,9 @@ protected:
//! Called by Parse to report an XML syntax error.
virtual void ReportXmlParseError();
+ /** Called by ReportXmlParseError with basic error info. */
+ virtual void ReportError(int line, int column, const char* msg);
+
//! Utility for convenience of subclasses. Wraps isspace C library
// routine.
static int IsSpace(char c);