types.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * Copyright (C) 1997-2015 by Dimitri van Heesch.
4  *
5  * Permission to use, copy, modify, and distribute this software and its
6  * documentation under the terms of the GNU General Public License is hereby
7  * granted. No representations are made about the suitability of this software
8  * for any purpose. It is provided "as is" without express or implied warranty.
9  * See the GNU General Public License for more details.
10  *
11  * Documents produced by Doxygen are derivative works derived from the
12  * input used in their production; they are not affected by this license.
13  *
14  */
15 
16 #ifndef TYPES_H
17 #define TYPES_H
18 
19 #include <qcstring.h>
20 
21 /** @file
22  * @brief This file contains a number of basic enums and types.
23  */
24 
25 /** Protection level of members */
27 
28 /** Virtualness of a member. */
30 
31 /** Kind of method */
33 
34 /** Type of member relation */
36 
37 /** Kind of member relationship */
39 
40 /** Language as given by extension */
42 {
43  SrcLangExt_Unknown = 0x00000,
44  SrcLangExt_IDL = 0x00008,
45  SrcLangExt_Java = 0x00010,
46  SrcLangExt_CSharp = 0x00020,
47  SrcLangExt_D = 0x00040,
48  SrcLangExt_PHP = 0x00080,
49  SrcLangExt_ObjC = 0x00100,
50  SrcLangExt_Cpp = 0x00200,
51  SrcLangExt_JS = 0x00400,
52  SrcLangExt_Python = 0x00800,
53  SrcLangExt_Fortran = 0x01000,
54  SrcLangExt_VHDL = 0x02000,
55  SrcLangExt_XML = 0x04000,
56  SrcLangExt_Tcl = 0x08000,
58 };
59 
60 /** Grouping info */
61 struct Grouping
62 {
63  /** Grouping priority */
64  enum GroupPri_t
65  {
67  GROUPING_AUTO_WEAK = GROUPING_LOWEST, //!< membership in group was defined via \@weakgroup
68  GROUPING_AUTO_ADD, //!< membership in group was defined via \@add[to]group
69  GROUPING_AUTO_DEF, //!< membership in group was defined via \@defgroup
71  GROUPING_INGROUP, //!< membership in group was defined by \@ingroup
73  };
74 
75  static const char *getGroupPriName( GroupPri_t priority )
76  {
77  switch( priority )
78  {
79  case GROUPING_AUTO_WEAK:
80  return "@weakgroup";
81  case GROUPING_AUTO_ADD:
82  return "@addtogroup";
83  case GROUPING_AUTO_DEF:
84  return "@defgroup";
85  case GROUPING_INGROUP:
86  return "@ingroup";
87  }
88  return "???";
89  }
90 
91  Grouping( const char *gn, GroupPri_t p ) : groupname(gn), pri(p) {}
92  Grouping( const Grouping &g ) : groupname(g.groupname), pri(g.pri) {}
93  QCString groupname; //!< name of the group
94  GroupPri_t pri; //!< priority of this definition
95 
96 };
97 
99 {
101  int itemId;
102 };
103 
105 {
110 
140 
150 
152 
167 
182 
186 
187  // this one is for the summary section on the class page
189  // this one is for the detailed section on the class page
193 };
194 
196 {
211 };
212 
214 {
218 };
219 
220 #endif
Definition: types.h:61
Definition: types.h:38
Definition: types.h:38
Definition: types.h:32
Definition: types.h:29
static constexpr double g
Definition: Units.h:144
membership in group was defined via @weakgroup
Definition: types.h:67
Definition: types.h:29
Definition: types.h:26
membership in group was defined via @defgroup
Definition: types.h:69
Definition: types.h:35
Definition: types.h:26
GroupPri_t
Definition: types.h:64
MemberType
Definition: types.h:195
Grouping(const char *gn, GroupPri_t p)
Definition: types.h:91
GroupPri_t pri
priority of this definition
Definition: types.h:94
SrcLangExt
Definition: types.h:41
Definition: types.h:26
Definition: types.h:32
Definition: types.h:29
FortranFormat
Definition: types.h:213
Relationship
Definition: types.h:38
int itemId
Definition: types.h:101
Definition: types.h:32
membership in group was defined by @ingroup
Definition: types.h:71
Definition: types.h:35
Definition: types.h:32
Specifier
Definition: types.h:29
p
Definition: test.py:223
QCString groupname
name of the group
Definition: types.h:93
Definition: types.h:38
Grouping(const Grouping &g)
Definition: types.h:92
Definition: types.h:32
QCString type
Definition: types.h:100
static const char * getGroupPriName(GroupPri_t priority)
Definition: types.h:75
MethodTypes
Definition: types.h:32
Protection
Definition: types.h:26
MemberListType
Definition: types.h:104
RelatesType
Definition: types.h:35
Definition: types.h:32
membership in group was defined via @add[to]group
Definition: types.h:68