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

Public Member Functions

 MemberTypeMap ()
 
IMember::MemberKind map (const QString &s)
 

Private Attributes

QDict< int > m_map
 

Detailed Description

Definition at line 27 of file memberhandler.cpp.

Constructor & Destructor Documentation

MemberTypeMap::MemberTypeMap ( )
inline

Definition at line 30 of file memberhandler.cpp.

31  {
32  m_map.setAutoDelete(TRUE);
33  m_map.insert("define",new int(IMember::Define));
34  m_map.insert("property",new int(IMember::Property));
35  m_map.insert("variable",new int(IMember::Variable));
36  m_map.insert("typedef",new int(IMember::Typedef));
37  m_map.insert("enum",new int(IMember::Enum));
38  m_map.insert("function",new int(IMember::Function));
39  m_map.insert("signal",new int(IMember::Signal));
40  m_map.insert("prototype",new int(IMember::Prototype));
41  m_map.insert("friend",new int(IMember::Friend));
42  m_map.insert("dcop",new int(IMember::DCOP));
43  m_map.insert("slot",new int(IMember::Slot));
44  m_map.insert("enumvalue",new int(IMember::EnumValue));
45  }
QDict< int > m_map
const bool TRUE
Definition: qglobal.h:371

Member Function Documentation

IMember::MemberKind MemberTypeMap::map ( const QString s)
inline

Definition at line 46 of file memberhandler.cpp.

47  {
48  int *val = m_map.find(s.utf8());
49  if (val==0)
50  {
51  debug(1,"Warning: `%s' is an invalid member type\n",s.data());
52  return IMember::Invalid;
53  }
54  else return (IMember::MemberKind)*val;
55  }
QDict< int > m_map
const char * data() const
Definition: qstring.h:542
QCString utf8() const
Definition: qstring.cpp:14507

Member Data Documentation

QDict<int> MemberTypeMap::m_map
private

Definition at line 57 of file memberhandler.cpp.


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