My Project
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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.

References LabelMap::event, m_map, LabelMap::name, and s_labels.

: m_map(17)
{
m_map.setAutoDelete(TRUE);
while (p->name)
{
m_map.insert(p->name,new Debug::DebugMask(p->event));
p++;
}
}

Member Function Documentation

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

Definition at line 68 of file debug.cpp.

References m_map.

Referenced by labelToEnumValue().

{
if (s==0) return 0;
return m_map.find(s);
}

Member Data Documentation

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

Definition at line 74 of file debug.cpp.

Referenced by find(), and LabelMapper().


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