summaryrefslogtreecommitdiffstats
path: root/addon/doxmlparser/src/basehandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'addon/doxmlparser/src/basehandler.h')
-rw-r--r--addon/doxmlparser/src/basehandler.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/addon/doxmlparser/src/basehandler.h b/addon/doxmlparser/src/basehandler.h
index 89f9504..c86316b 100644
--- a/addon/doxmlparser/src/basehandler.h
+++ b/addon/doxmlparser/src/basehandler.h
@@ -22,6 +22,8 @@
#include "debug.h"
+//-----------------------------------------------------------------------------
+
class IBaseHandler
{
public:
@@ -30,6 +32,8 @@ class IBaseHandler
virtual ~IBaseHandler() {}
};
+//-----------------------------------------------------------------------------
+
class IFallBackHandler
{
public:
@@ -39,6 +43,8 @@ class IFallBackHandler
virtual ~IFallBackHandler() {}
};
+//-----------------------------------------------------------------------------
+
template<class T> class ElementMapper
{
class StartElementHandler
@@ -108,11 +114,15 @@ template<class T> class ElementMapper
QDict<EndElementHandlerT> m_endHandlers;
};
+//-----------------------------------------------------------------------------
+
struct LocatorContainer
{
static QXmlLocator *s_theLocator;
};
+//-----------------------------------------------------------------------------
+
template<class T> class BaseHandler : public QXmlDefaultHandler,
public ElementMapper<T>,
public LocatorContainer,
@@ -269,6 +279,8 @@ template<class T> class BaseHandler : public QXmlDefaultHandler,
IFallBackHandler *m_fallBackHandler;
};
+//-----------------------------------------------------------------------------
+
template<class T> class BaseFallBackHandler : public ElementMapper<T>,
public IFallBackHandler
{