Public Member Functions | Private Attributes | List of all members
LabelMapper Class Reference

Public Member Functions

 LabelMapper ()
 
Debug::DebugMaskfind (const char *s) const
 

Private Attributes

QDict< Debug::DebugMaskm_map
 

Detailed Description

Class representing a mapping from debug labels to debug IDs.

Definition at line 55 of file debug.cpp.

Constructor & Destructor Documentation

LabelMapper::LabelMapper ( )
inline

Definition at line 58 of file debug.cpp.

58  : m_map(17)
59  {
60  m_map.setAutoDelete(TRUE);
61  LabelMap *p = s_labels;
62  while (p->name)
63  {
64  m_map.insert(p->name,new Debug::DebugMask(p->event));
65  p++;
66  }
67  }
const char * name
Definition: debug.cpp:31
DebugMask
Definition: debug.h:26
Debug::DebugMask event
Definition: debug.cpp:32
static LabelMap s_labels[]
Definition: debug.cpp:35
QDict< Debug::DebugMask > m_map
Definition: debug.cpp:74
p
Definition: test.py:223
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

Debug::DebugMask* LabelMapper::find ( const char *  s) const
inline

Definition at line 68 of file debug.cpp.

69  {
70  if (s==0) return 0;
71  return m_map.find(s);
72  }
QDict< Debug::DebugMask > m_map
Definition: debug.cpp:74
static QCString * s
Definition: config.cpp:1042

Member Data Documentation

QDict<Debug::DebugMask> LabelMapper::m_map
private

Definition at line 74 of file debug.cpp.


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