mirror of
https://github.com/jezhiggins/arabica
synced 2025-01-30 08:38:15 +01:00
Parameterised on string_type so that it can accept the appropriate type
of basic_SAXParseException.
This commit is contained in:
parent
5fe71a1059
commit
8f211da950
1 changed files with 12 additions and 5 deletions
|
@ -39,10 +39,14 @@ namespace SAX
|
||||||
* @see basic_Parser#setErrorHandler
|
* @see basic_Parser#setErrorHandler
|
||||||
* @see basic_SAXParseException
|
* @see basic_SAXParseException
|
||||||
*/
|
*/
|
||||||
class ErrorHandler
|
template<class string_type>
|
||||||
|
class basic_ErrorHandler
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
virtual ~ErrorHandler() { };
|
typedef string_type stringT;
|
||||||
|
typedef basic_SAXParseException<stringT> SAXParseExceptionT;
|
||||||
|
|
||||||
|
virtual ~basic_ErrorHandler() { };
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Receive notification of a warning.
|
* Receive notification of a warning.
|
||||||
|
@ -62,7 +66,7 @@ public:
|
||||||
* SAX parse exception.
|
* SAX parse exception.
|
||||||
* @see basic_SAXParseException
|
* @see basic_SAXParseException
|
||||||
*/
|
*/
|
||||||
virtual void warning(const SAXParseException& exception) = 0;
|
virtual void warning(const SAXParseExceptionT& exception) = 0;
|
||||||
/**
|
/**
|
||||||
* Receive notification of a recoverable error.
|
* Receive notification of a recoverable error.
|
||||||
*
|
*
|
||||||
|
@ -86,7 +90,7 @@ public:
|
||||||
* SAX parse exception.
|
* SAX parse exception.
|
||||||
* @see basic_SAXParseException
|
* @see basic_SAXParseException
|
||||||
*/
|
*/
|
||||||
virtual void error(const SAXParseException& exception) = 0;
|
virtual void error(const SAXParseExceptionT& exception) = 0;
|
||||||
/**
|
/**
|
||||||
* Receive notification of a non-recoverable error.
|
* Receive notification of a non-recoverable error.
|
||||||
*
|
*
|
||||||
|
@ -105,9 +109,12 @@ public:
|
||||||
* SAX parse exception.
|
* SAX parse exception.
|
||||||
* @see basic_SAXParseException
|
* @see basic_SAXParseException
|
||||||
*/
|
*/
|
||||||
virtual void fatalError(const SAXParseException& exception) = 0;
|
virtual void fatalError(const SAXParseExceptionT& exception) = 0;
|
||||||
}; // class ErrorHandler
|
}; // class ErrorHandler
|
||||||
|
|
||||||
|
typedef basic_ErrorHandler<std::string> ErrorHandler;
|
||||||
|
typedef basic_ErrorHandler<std::wstring> wErrorHandler;
|
||||||
|
|
||||||
}; // namespace SAX
|
}; // namespace SAX
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Reference in a new issue