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

Public Member Functions

 SectionTypeMap ()
 
ISection::SectionKind map (const QString &s)
 

Private Attributes

QDict< int > m_map
 

Detailed Description

Definition at line 23 of file sectionhandler.cpp.

Constructor & Destructor Documentation

SectionTypeMap::SectionTypeMap ( )
inline

Definition at line 26 of file sectionhandler.cpp.

26  : m_map(37)
27  {
28  m_map.setAutoDelete(TRUE);
29  m_map.insert("user-defined",new int(ISection::UserDefined));
30  m_map.insert("public-type",new int(ISection::PubTypes));
31  m_map.insert("public-func",new int(ISection::PubFuncs));
32  m_map.insert("public-attrib",new int(ISection::PubAttribs));
33  m_map.insert("public-slot",new int(ISection::PubSlots));
34  m_map.insert("signal",new int(ISection::Signals));
35  m_map.insert("dcop-func",new int(ISection::DCOPFuncs));
36  m_map.insert("property",new int(ISection::Properties));
37  m_map.insert("event",new int(ISection::Events));
38  m_map.insert("public-static-func",new int(ISection::PubStatFuncs));
39  m_map.insert("public-static-attrib",new int(ISection::PubStatAttribs));
40  m_map.insert("protected-type",new int(ISection::ProTypes));
41  m_map.insert("protected-func",new int(ISection::ProFuncs));
42  m_map.insert("protected-attrib",new int(ISection::ProAttribs));
43  m_map.insert("protected-slot",new int(ISection::ProSlots));
44  m_map.insert("protected-static-func",new int(ISection::ProStatFuncs));
45  m_map.insert("protected-static-attrib",new int(ISection::ProStatAttribs));
46  m_map.insert("package-type",new int(ISection::PacTypes));
47  m_map.insert("package-func",new int(ISection::PacFuncs));
48  m_map.insert("package-attrib",new int(ISection::PacAttribs));
49  m_map.insert("package-static-func",new int(ISection::PacStatFuncs));
50  m_map.insert("package-static-attrib",new int(ISection::PacStatAttribs));
51  m_map.insert("private-type",new int(ISection::PriTypes));
52  m_map.insert("private-func",new int(ISection::PriFuncs));
53  m_map.insert("private-attrib",new int(ISection::PriAttribs));
54  m_map.insert("private-slot",new int(ISection::PriSlots));
55  m_map.insert("private-static-func",new int(ISection::PriStatFuncs));
56  m_map.insert("private-static-attrib",new int(ISection::PriStatAttribs));
57  m_map.insert("friend",new int(ISection::Friend));
58  m_map.insert("related",new int(ISection::Related));
59  m_map.insert("define",new int(ISection::Defines));
60  m_map.insert("prototype",new int(ISection::Prototypes));
61  m_map.insert("typedef",new int(ISection::Typedefs));
62  m_map.insert("enum",new int(ISection::Enums));
63  m_map.insert("func",new int(ISection::Functions));
64  m_map.insert("var",new int(ISection::Variables));
65  }
Private member typedefs.
Definition: doxmlintf.h:776
Protected static member functions.
Definition: doxmlintf.h:769
Friends.
Definition: doxmlintf.h:782
Private Qt slots.
Definition: doxmlintf.h:779
Qt Signals.
Definition: doxmlintf.h:759
Public member functions.
Definition: doxmlintf.h:756
Public member attributes.
Definition: doxmlintf.h:757
C# events.
Definition: doxmlintf.h:762
Package member functions.
Definition: doxmlintf.h:772
Public static member functions.
Definition: doxmlintf.h:763
IDL properties.
Definition: doxmlintf.h:761
Private static member functions.
Definition: doxmlintf.h:780
Protected static member attributes.
Definition: doxmlintf.h:770
Private member attributes.
Definition: doxmlintf.h:778
Global typedefs.
Definition: doxmlintf.h:786
Public member typedefs.
Definition: doxmlintf.h:755
Private member functions.
Definition: doxmlintf.h:777
Package static member attributes.
Definition: doxmlintf.h:775
Protected slots.
Definition: doxmlintf.h:768
Protected member typedefs.
Definition: doxmlintf.h:765
Enumerations.
Definition: doxmlintf.h:787
Global function prototypes.
Definition: doxmlintf.h:785
Global variables.
Definition: doxmlintf.h:789
Package member typedefs.
Definition: doxmlintf.h:771
A user defined member group.
Definition: doxmlintf.h:754
Private static member attributes.
Definition: doxmlintf.h:781
Preprocessor defines.
Definition: doxmlintf.h:784
Protected member attributes.
Definition: doxmlintf.h:767
Package static member functions.
Definition: doxmlintf.h:774
Global functions.
Definition: doxmlintf.h:788
Function marked as related.
Definition: doxmlintf.h:783
Public Qt Slots.
Definition: doxmlintf.h:758
Package member attributes.
Definition: doxmlintf.h:773
const bool TRUE
Definition: qglobal.h:371
QDict< int > m_map
Public static attributes.
Definition: doxmlintf.h:764
KDE-DCOP interface functions.
Definition: doxmlintf.h:760
Protected member functions.
Definition: doxmlintf.h:766

Member Function Documentation

ISection::SectionKind SectionTypeMap::map ( const QString s)
inline

Definition at line 66 of file sectionhandler.cpp.

67  {
68  int *val = m_map.find(s.utf8());
69  if (val==0)
70  {
71  debug(1,"Warning: `%s' is an invalid section type\n",s.data());
72  return ISection::Invalid;
73  }
74  else return (ISection::SectionKind)*val;
75  }
const char * data() const
Definition: qstring.h:542
QCString utf8() const
Definition: qstring.cpp:14507
QDict< int > m_map

Member Data Documentation

QDict<int> SectionTypeMap::m_map
private

Definition at line 77 of file sectionhandler.cpp.


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