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

Public Member Functions

 CompoundTypeMap ()
 
virtual ~CompoundTypeMap ()
 
ICompound::CompoundKind map (const QString &s)
 

Private Attributes

QDict< int > m_map
 

Detailed Description

Definition at line 127 of file compoundhandler.cpp.

Constructor & Destructor Documentation

CompoundTypeMap::CompoundTypeMap ( )
inline

Definition at line 130 of file compoundhandler.cpp.

131  {
132  m_map.setAutoDelete(TRUE);
133  m_map.insert("class", new int(ICompound::Class));
134  m_map.insert("struct", new int(ICompound::Struct));
135  m_map.insert("union", new int(ICompound::Union));
136  m_map.insert("interface",new int(ICompound::Interface));
137  m_map.insert("protocol", new int(ICompound::Protocol));
138  m_map.insert("category", new int(ICompound::Category));
139  m_map.insert("exception",new int(ICompound::Exception));
140  m_map.insert("file", new int(ICompound::File));
141  m_map.insert("namespace",new int(ICompound::Namespace));
142  m_map.insert("group", new int(ICompound::Group));
143  m_map.insert("page", new int(ICompound::Page));
144  m_map.insert("example", new int(ICompound::Example));
145  m_map.insert("dir", new int(ICompound::Dir));
146  }
QDict< int > m_map
const bool TRUE
Definition: qglobal.h:371
virtual CompoundTypeMap::~CompoundTypeMap ( )
inlinevirtual

Definition at line 147 of file compoundhandler.cpp.

148  {
149  }

Member Function Documentation

ICompound::CompoundKind CompoundTypeMap::map ( const QString s)
inline

Definition at line 150 of file compoundhandler.cpp.

151  {
152  int *val = m_map.find(s.utf8());
153  if (val==0)
154  {
155  debug(1,"Warning: `%s' is an invalid compound type\n",s.data());
156  return ICompound::Invalid;
157  }
158  else return (ICompound::CompoundKind)*val;
159  }
const char * data() const
Definition: qstring.h:542
QDict< int > m_map
QCString utf8() const
Definition: qstring.cpp:14507

Member Data Documentation

QDict<int> CompoundTypeMap::m_map
private

Definition at line 161 of file compoundhandler.cpp.


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