arabica/include/SAX/ext/DefaultHandler2.hpp

62 lines
1.6 KiB
C++
Raw Normal View History

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
#pragma message("DefaultHandler2 is deprecated. You can now use DefaultHandler instead.")
2007-09-05 11:49:18 +02:00
namespace Arabica
{
namespace SAX
{
2002-06-21 13:16:28 +02:00
/**
* Default base class for SAX2 event handlers.
*
* <p>This class extends the SAX2 base
* {@link DefaultHandler} handler class to
* support the SAX2 {@link LexicalHandler LexicalHandler}
* and {@link DeclHandler DeclHandler} extensions.
2002-06-21 13:16:28 +02:00
* 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 Locator2 Locator2} object, and
2002-06-21 13:16:28 +02:00
* that the ContentHandler.startElement() call might be
* passed a {@link Attributes2 Attributes2} object.
2002-06-21 13:16:28 +02:00
*
* @since SAX 2.0
* @author Jez Higgins,
* <a href="mailto:jez@jezuk.co.uk">jez@jezuk.co.uk</a>
* @version 2.0
* @see DefaultHandler
* @see LexicalHandler
* @see DeclHandler
2002-06-21 13:16:28 +02:00
*/
template<class string_type, class string_adaptor>
class DefaultHandler2 : public DefaultHandler<string_type, string_adaptor>
2002-06-21 13:16:28 +02:00
{
public:
typedef string_type stringT;
DefaultHandler2() { }
virtual ~DefaultHandler2() { }
2002-06-21 13:16:28 +02:00
private:
DefaultHandler2(const DefaultHandler2&);
DefaultHandler2& operator=(const DefaultHandler2&);
bool operator==(const DefaultHandler2&);
}; // class DefaultHandler
2002-06-21 13:16:28 +02:00
} // namespace SAX
2007-09-05 11:49:18 +02:00
} // namespace Arabica
2002-06-21 13:16:28 +02:00
#endif