Public Types | Public Member Functions | List of all members
BaseFallBackHandler< T > Class Template Reference

#include <basehandler.h>

Inheritance diagram for BaseFallBackHandler< T >:
ElementMapper< T > IFallBackHandler

Public Types

typedef ElementMapper< T >::StartElementHandlerT StartElementHandlerT
 
typedef ElementMapper< T >::EndElementHandlerT EndElementHandlerT
 
- Public Types inherited from ElementMapper< T >
typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 

Public Member Functions

 BaseFallBackHandler ()
 
virtual ~BaseFallBackHandler ()
 
bool handleStartElement (const QString &name, const QXmlAttributes &attrib)
 
bool handleEndElement (const QString &name)
 
- Public Member Functions inherited from ElementMapper< T >
 ElementMapper ()
 
virtual ~ElementMapper ()
 
void addStartHandler (const char *key)
 
void addStartHandler (const char *key, T *obj, void(T::*handler)(const QXmlAttributes &))
 
void addEndHandler (const char *key)
 
void addEndHandler (const char *key, T *obj, void(T::*handler)())
 
- Public Member Functions inherited from IFallBackHandler
virtual ~IFallBackHandler ()
 

Additional Inherited Members

- Protected Attributes inherited from ElementMapper< T >
QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

template<class T>
class BaseFallBackHandler< T >

Definition at line 287 of file basehandler.h.

Member Typedef Documentation

Definition at line 292 of file basehandler.h.

Definition at line 291 of file basehandler.h.

Constructor & Destructor Documentation

template<class T>
BaseFallBackHandler< T >::BaseFallBackHandler ( )
inline

Definition at line 294 of file basehandler.h.

295  {
296  }
template<class T>
virtual BaseFallBackHandler< T >::~BaseFallBackHandler ( )
inlinevirtual

Definition at line 297 of file basehandler.h.

298  {
299  }

Member Function Documentation

template<class T>
bool BaseFallBackHandler< T >::handleEndElement ( const QString name)
inlinevirtual

Implements IFallBackHandler.

Definition at line 312 of file basehandler.h.

313  {
315  if (handler)
316  {
317  (*handler)();
318  return TRUE;
319  }
320  return FALSE;
321  }
ElementMapper< T >::EndElementHandlerT EndElementHandlerT
Definition: basehandler.h:292
const bool FALSE
Definition: qglobal.h:370
static msg_handler handler
Definition: qglobal.cpp:234
QCString utf8() const
Definition: qstring.cpp:14507
const bool TRUE
Definition: qglobal.h:371
template<class T>
bool BaseFallBackHandler< T >::handleStartElement ( const QString name,
const QXmlAttributes attrib 
)
inlinevirtual

Implements IFallBackHandler.

Definition at line 301 of file basehandler.h.

303  {
305  if (handler)
306  {
307  (*handler)(attrib);
308  return TRUE;
309  }
310  return FALSE;
311  }
const bool FALSE
Definition: qglobal.h:370
ElementMapper< T >::StartElementHandlerT StartElementHandlerT
Definition: basehandler.h:291
static msg_handler handler
Definition: qglobal.cpp:234
QCString utf8() const
Definition: qstring.cpp:14507
const bool TRUE
Definition: qglobal.h:371

The documentation for this class was generated from the following file: