2003-09-11 12:26:53 +02:00
|
|
|
#ifndef ARABICA_DEFAULT_HANDLER2_H
|
|
|
|
#define ARABICA_DEFAULT_HANDLER2_H
|
2002-06-21 13:16:28 +02:00
|
|
|
|
|
|
|
// DefaultHandler.h
|
|
|
|
// $Id$
|
|
|
|
|
2007-09-05 00:55:47 +02:00
|
|
|
#include <SAX/ArabicaConfig.hpp>
|
|
|
|
#include <SAX/helpers/DefaultHandler.hpp>
|
|
|
|
#include <SAX/ext/DeclHandler.hpp>
|
|
|
|
#include <SAX/ext/LexicalHandler.hpp>
|
2002-06-21 13:16:28 +02:00
|
|
|
|
2007-01-15 15:21:33 +01:00
|
|
|
#pragma message("DefaultHandler2 is deprecated. You can now use DefaultHandler instead.")
|
|
|
|
|
2002-06-21 13:16:28 +02:00
|
|
|
namespace SAX {
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Default base class for SAX2 event handlers.
|
|
|
|
*
|
|
|
|
* <p>This class extends the SAX2 base
|
|
|
|
* {@link basic_DefaultHandler} handler class to
|
|
|
|
* support the SAX2 {@link basic_LexicalHandler LexicalHandler}
|
|
|
|
* and {@link basic_DeclHandler DeclHandler} extensions.
|
|
|
|
* The added handler methods just return; subclassers may
|
|
|
|
* override on a method-by-method basis.
|
|
|
|
*
|
|
|
|
* Note: this class might yet learn that the
|
|
|
|
* ContentHandler.setDocumentLocator() call might be
|
|
|
|
* passed a {@link basic_Locator2 Locator2} object, and
|
|
|
|
* that the ContentHandler.startElement() call might be
|
|
|
|
* passed a {@link basic_Attributes2 Attributes2} object.
|
|
|
|
*
|
|
|
|
* @since SAX 2.0
|
|
|
|
* @author Jez Higgins,
|
|
|
|
* <a href="mailto:jez@jezuk.co.uk">jez@jezuk.co.uk</a>
|
|
|
|
* @version 2.0
|
|
|
|
* @see basic_DefaultHandler
|
|
|
|
* @see basic_LexicalHandler
|
|
|
|
* @see basic_DeclHandler
|
|
|
|
*/
|
|
|
|
template<class string_type>
|
2007-01-15 15:21:33 +01:00
|
|
|
class basic_DefaultHandler2 : public basic_DefaultHandler<string_type>
|
2002-06-21 13:16:28 +02:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef string_type stringT;
|
|
|
|
|
|
|
|
basic_DefaultHandler2() { }
|
|
|
|
virtual ~basic_DefaultHandler2() { }
|
|
|
|
|
|
|
|
private:
|
|
|
|
basic_DefaultHandler2(const basic_DefaultHandler2&);
|
|
|
|
basic_DefaultHandler2& operator=(const basic_DefaultHandler2&);
|
|
|
|
bool operator==(const basic_DefaultHandler2&);
|
|
|
|
}; // class basic_DefaultHandler
|
|
|
|
|
|
|
|
typedef basic_DefaultHandler2<std::string> DefaultHandler2;
|
2003-09-08 16:14:43 +02:00
|
|
|
#ifndef ARABICA_NO_WCHAR_T
|
2002-06-21 13:16:28 +02:00
|
|
|
typedef basic_DefaultHandler2<std::wstring> wDefaultHandler2;
|
2003-09-08 16:14:43 +02:00
|
|
|
#endif
|
2002-06-21 13:16:28 +02:00
|
|
|
|
|
|
|
} // namespace SAX
|
|
|
|
|
|
|
|
#endif
|