diff --git a/SAX/ErrorHandler.h b/SAX/ErrorHandler.h index 76cc7079..cfbb9b5a 100644 --- a/SAX/ErrorHandler.h +++ b/SAX/ErrorHandler.h @@ -39,10 +39,14 @@ namespace SAX * @see basic_Parser#setErrorHandler * @see basic_SAXParseException */ -class ErrorHandler +template +class basic_ErrorHandler { public: - virtual ~ErrorHandler() { }; + typedef string_type stringT; + typedef basic_SAXParseException SAXParseExceptionT; + + virtual ~basic_ErrorHandler() { }; /** * Receive notification of a warning. @@ -62,7 +66,7 @@ public: * SAX parse exception. * @see basic_SAXParseException */ - virtual void warning(const SAXParseException& exception) = 0; + virtual void warning(const SAXParseExceptionT& exception) = 0; /** * Receive notification of a recoverable error. * @@ -86,7 +90,7 @@ public: * SAX parse exception. * @see basic_SAXParseException */ - virtual void error(const SAXParseException& exception) = 0; + virtual void error(const SAXParseExceptionT& exception) = 0; /** * Receive notification of a non-recoverable error. * @@ -105,9 +109,12 @@ public: * SAX parse exception. * @see basic_SAXParseException */ - virtual void fatalError(const SAXParseException& exception) = 0; + virtual void fatalError(const SAXParseExceptionT& exception) = 0; }; // class ErrorHandler +typedef basic_ErrorHandler ErrorHandler; +typedef basic_ErrorHandler wErrorHandler; + }; // namespace SAX #endif