Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
ElementMapper< T > Class Template Reference

#include <basehandler.h>

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

Classes

class  EndElementHandler
 
class  StartElementHandler
 

Public Types

typedef StartElementHandler StartElementHandlerT
 
typedef EndElementHandler EndElementHandlerT
 

Public Member Functions

 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)())
 

Protected Attributes

QDict< StartElementHandlerTm_startHandlers
 
QDict< EndElementHandlerTm_endHandlers
 

Detailed Description

template<class T>
class ElementMapper< T >

Definition at line 48 of file basehandler.h.

Member Typedef Documentation

template<class T>
typedef EndElementHandler ElementMapper< T >::EndElementHandlerT

Definition at line 80 of file basehandler.h.

template<class T>
typedef StartElementHandler ElementMapper< T >::StartElementHandlerT

Definition at line 79 of file basehandler.h.

Constructor & Destructor Documentation

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

Definition at line 82 of file basehandler.h.

83  {
84  m_startHandlers.setAutoDelete(TRUE);
85  m_endHandlers.setAutoDelete(TRUE);
86  }
QDict< StartElementHandlerT > m_startHandlers
Definition: basehandler.h:113
QDict< EndElementHandlerT > m_endHandlers
Definition: basehandler.h:114
const bool TRUE
Definition: qglobal.h:371
template<class T>
virtual ElementMapper< T >::~ElementMapper ( )
inlinevirtual

Definition at line 87 of file basehandler.h.

88  {
89  }

Member Function Documentation

template<class T>
void ElementMapper< T >::addEndHandler ( const char *  key)
inline

Definition at line 101 of file basehandler.h.

102  {
104  }
QDict< EndElementHandlerT > m_endHandlers
Definition: basehandler.h:114
def key(type, name=None)
Definition: graph.py:13
EndElementHandler EndElementHandlerT
Definition: basehandler.h:80
template<class T>
void ElementMapper< T >::addEndHandler ( const char *  key,
T *  obj,
void(T::*)()  handler 
)
inline

Definition at line 106 of file basehandler.h.

107  {
108  m_endHandlers.insert(key,new EndElementHandlerT(obj,handler));
109  }
QDict< EndElementHandlerT > m_endHandlers
Definition: basehandler.h:114
def key(type, name=None)
Definition: graph.py:13
EndElementHandler EndElementHandlerT
Definition: basehandler.h:80
static msg_handler handler
Definition: qglobal.cpp:234
template<class T>
void ElementMapper< T >::addStartHandler ( const char *  key)
inline

Definition at line 91 of file basehandler.h.

92  {
94  }
QDict< StartElementHandlerT > m_startHandlers
Definition: basehandler.h:113
StartElementHandler StartElementHandlerT
Definition: basehandler.h:79
def key(type, name=None)
Definition: graph.py:13
template<class T>
void ElementMapper< T >::addStartHandler ( const char *  key,
T *  obj,
void(T::*)(const QXmlAttributes &)  handler 
)
inline

Definition at line 96 of file basehandler.h.

97  {
99  }
QDict< StartElementHandlerT > m_startHandlers
Definition: basehandler.h:113
StartElementHandler StartElementHandlerT
Definition: basehandler.h:79
def key(type, name=None)
Definition: graph.py:13
static msg_handler handler
Definition: qglobal.cpp:234

Member Data Documentation

template<class T>
QDict<EndElementHandlerT> ElementMapper< T >::m_endHandlers
protected

Definition at line 114 of file basehandler.h.

template<class T>
QDict<StartElementHandlerT> ElementMapper< T >::m_startHandlers
protected

Definition at line 113 of file basehandler.h.


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