Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
cmdmapper.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
*
4
*
5
*
6
* Copyright (C) 1997-2015 by Dimitri van Heesch.
7
*
8
* Permission to use, copy, modify, and distribute this software and its
9
* documentation under the terms of the GNU General Public License is hereby
10
* granted. No representations are made about the suitability of this software
11
* for any purpose. It is provided "as is" without express or implied warranty.
12
* See the GNU General Public License for more details.
13
*
14
* Documents produced by Doxygen are derivative works derived from the
15
* input used in their production; they are not affected by this license.
16
*
17
*/
18
19
#ifndef _CMDMAPPER_H
20
#define _CMDMAPPER_H
21
22
#include <
qdict.h
>
23
24
struct
CommandMap
;
25
26
const
int
SIMPLESECT_BIT
= 0x1000;
27
28
enum
CommandType
29
{
30
CMD_UNKNOWN
= 0,
31
CMD_ADDINDEX
= 1,
32
CMD_AMP
= 2,
33
CMD_ANCHOR
= 3,
34
CMD_AT
= 4,
35
CMD_ATTENTION
= 5 |
SIMPLESECT_BIT
,
36
CMD_AUTHOR
= 6 |
SIMPLESECT_BIT
,
37
CMD_AUTHORS
= 7 |
SIMPLESECT_BIT
,
38
CMD_BOLD
= 8,
39
CMD_BSLASH
= 9,
40
CMD_CODE
= 10,
41
CMD_COPYDOC
= 11,
42
CMD_DATE
= 12 |
SIMPLESECT_BIT
,
43
CMD_DOLLAR
= 13,
44
CMD_DONTINCLUDE
= 14,
45
CMD_DOTFILE
= 15,
46
CMD_EMPHASIS
= 16,
47
CMD_ENDCODE
= 17,
48
CMD_ENDHTMLONLY
= 18,
49
CMD_ENDLATEXONLY
= 19,
50
CMD_ENDLINK
= 20,
51
CMD_ENDSECREFLIST
= 21,
52
CMD_ENDVERBATIM
= 22,
53
CMD_ENDXMLONLY
= 23,
54
CMD_EXCEPTION
= 24 |
SIMPLESECT_BIT
,
55
CMD_FORMULA
= 25,
56
CMD_GREATER
= 26,
57
CMD_HASH
= 27,
58
CMD_HTMLINCLUDE
= 28,
59
CMD_HTMLONLY
= 29,
60
CMD_IMAGE
= 30,
61
CMD_INCLUDE
= 31,
62
CMD_INTERNAL
= 32,
63
CMD_INTERNALREF
= 33,
64
CMD_INVARIANT
= 34 |
SIMPLESECT_BIT
,
65
CMD_LATEXONLY
= 35,
66
CMD_LESS
= 36,
67
CMD_LI
= 37,
68
CMD_LINE
= 38,
69
CMD_LINEBREAK
= 39,
70
CMD_LINK
= 40,
71
CMD_NOTE
= 41 |
SIMPLESECT_BIT
,
72
CMD_PAR
= 42 |
SIMPLESECT_BIT
,
73
CMD_PARAM
= 43 |
SIMPLESECT_BIT
,
74
CMD_PERCENT
= 44,
75
CMD_POST
= 45 |
SIMPLESECT_BIT
,
76
CMD_PRE
= 46 |
SIMPLESECT_BIT
,
77
CMD_REF
= 47,
78
CMD_SECREFITEM
= 48,
79
CMD_REMARK
= 49 |
SIMPLESECT_BIT
,
80
CMD_RETURN
= 50 |
SIMPLESECT_BIT
,
81
CMD_RETVAL
= 51 |
SIMPLESECT_BIT
,
82
CMD_SA
= 52 |
SIMPLESECT_BIT
,
83
CMD_SECREFLIST
= 53,
84
CMD_SECTION
= 54,
85
CMD_SUBPAGE
= 55,
86
CMD_SUBSECTION
= 56,
87
CMD_SUBSUBSECTION
= 57,
88
CMD_PARAGRAPH
= 58,
89
CMD_SINCE
= 59 |
SIMPLESECT_BIT
,
90
CMD_SKIP
= 60,
91
CMD_SKIPLINE
= 61,
92
CMD_STARTCODE
= 62,
93
CMD_JAVALINK
= 63,
94
CMD_UNTIL
= 64,
95
CMD_VERBATIM
= 65,
96
CMD_VERBINCLUDE
= 66,
97
CMD_VERSION
= 67 |
SIMPLESECT_BIT
,
98
CMD_WARNING
= 68 |
SIMPLESECT_BIT
,
99
CMD_XREFITEM
= 69 |
SIMPLESECT_BIT
,
100
CMD_XMLONLY
= 70,
101
CMD_DOT
= 71,
102
CMD_ENDDOT
= 72,
103
CMD_MSC
= 73,
104
CMD_ENDMSC
= 74,
105
CMD_MANONLY
= 75,
106
CMD_ENDMANONLY
= 76,
107
CMD_INCWITHLINES
= 77,
108
CMD_INHERITDOC
= 78,
109
CMD_TPARAM
= 79 |
SIMPLESECT_BIT
,
110
CMD_COPYBRIEF
= 80,
111
CMD_COPYDETAILS
= 81,
112
CMD_QUOTE
= 82,
113
CMD_MSCFILE
= 83,
114
CMD_DCOLON
= 84,
115
CMD_COPYRIGHT
= 85 |
SIMPLESECT_BIT
,
116
CMD_CITE
= 86,
117
CMD_SNIPPET
= 87,
118
CMD_RTFONLY
= 88,
119
CMD_ENDRTFONLY
= 89,
120
CMD_PIPE
= 90,
121
CMD_VHDLFLOW
= 91,
122
CMD_DBONLY
= 92,
123
CMD_ENDDBONLY
= 93,
124
CMD_ENDINTERNAL
= 94,
125
CMD_PARBLOCK
= 95,
126
CMD_ENDPARBLOCK
= 96,
127
CMD_DIAFILE
= 97,
128
CMD_LATEXINCLUDE
= 98,
129
CMD_NDASH
= 99,
130
CMD_MDASH
= 100,
131
CMD_STARTUML
= 101,
132
CMD_ENDUML
= 102,
133
CMD_SETSCOPE
= 103,
134
CMD_PUNT
= 104,
135
CMD_PLUS
= 105,
136
CMD_MINUS
= 106
137
};
138
139
enum
HtmlTagType
140
{
141
HTML_UNKNOWN
= 0,
142
HTML_CENTER
= 1,
143
HTML_TABLE
= 2,
144
HTML_CAPTION
= 3,
145
HTML_SMALL
= 4,
146
HTML_CODE
= 5,
147
HTML_IMG
= 6,
148
HTML_PRE
= 7,
149
HTML_SUB
= 8,
150
HTML_SUP
= 9,
151
HTML_TR
= 10,
152
HTML_TD
= 11,
153
HTML_TH
= 12,
154
HTML_OL
= 13,
155
HTML_UL
= 14,
156
HTML_LI
= 15,
157
HTML_EMPHASIS
= 16,
158
HTML_HR
= 17,
159
HTML_DL
= 18,
160
HTML_DT
= 19,
161
HTML_DD
= 20,
162
HTML_BR
= 21,
163
HTML_A
= 22,
164
HTML_BOLD
= 23,
165
HTML_P
= 24,
166
HTML_H1
= 25,
167
HTML_H2
= 26,
168
HTML_H3
= 27,
169
HTML_H4
= 28,
170
HTML_H5
= 29,
171
HTML_H6
= 30,
172
HTML_SPAN
= 31,
173
HTML_DIV
= 32,
174
HTML_BLOCKQUOTE
= 33,
175
176
XML_CmdMask
= 0x100,
177
178
XML_C
=
XML_CmdMask
+ 0,
179
XML_CODE
=
XML_CmdMask
+ 1,
180
XML_DESCRIPTION
=
XML_CmdMask
+ 2,
181
XML_EXAMPLE
=
XML_CmdMask
+ 3,
182
XML_EXCEPTION
=
XML_CmdMask
+ 4,
183
XML_INCLUDE
=
XML_CmdMask
+ 5,
184
XML_ITEM
=
XML_CmdMask
+ 6,
185
XML_LIST
=
XML_CmdMask
+ 7,
186
XML_LISTHEADER
=
XML_CmdMask
+ 8,
187
XML_PARA
=
XML_CmdMask
+ 9,
188
XML_PARAM
=
XML_CmdMask
+ 10,
189
XML_PARAMREF
=
XML_CmdMask
+ 11,
190
XML_PERMISSION
=
XML_CmdMask
+ 12,
191
XML_REMARKS
=
XML_CmdMask
+ 13,
192
XML_RETURNS
=
XML_CmdMask
+ 14,
193
XML_SEE
=
XML_CmdMask
+ 15,
194
XML_SEEALSO
=
XML_CmdMask
+ 16,
195
XML_SUMMARY
=
XML_CmdMask
+ 17,
196
XML_TERM
=
XML_CmdMask
+ 18,
197
XML_TYPEPARAM
=
XML_CmdMask
+ 19,
198
XML_TYPEPARAMREF
=
XML_CmdMask
+ 20,
199
XML_VALUE
=
XML_CmdMask
+ 21,
200
XML_INHERITDOC
=
XML_CmdMask
+ 22
201
};
202
203
/** Class representing a mapping from command names to command IDs. */
204
class
Mapper
205
{
206
public
:
207
int
map
(
const
char
*
n
);
208
QString
find
(
const
int
n);
209
Mapper
(
const
CommandMap
*
cm
,
bool
caseSensitive);
210
private
:
211
QDict<int>
m_map
;
212
bool
m_cs
;
213
};
214
215
/** Class representing a namespace for the doxygen and HTML command mappers. */
216
struct
Mappers
217
{
218
static
void
freeMappers();
219
static
Mapper
*
cmdMapper
;
220
static
Mapper
*
htmlTagMapper
;
221
};
222
223
224
#endif
genie::units::cm
static constexpr double cm
Definition:
Units.h:68
CMD_INHERITDOC
Definition:
cmdmapper.h:108
CMD_HTMLINCLUDE
Definition:
cmdmapper.h:58
CMD_RETVAL
Definition:
cmdmapper.h:81
HTML_CENTER
Definition:
cmdmapper.h:142
CMD_HTMLONLY
Definition:
cmdmapper.h:59
CMD_QUOTE
Definition:
cmdmapper.h:112
CommandType
CommandType
Definition:
cmdmapper.h:28
XML_TYPEPARAMREF
Definition:
cmdmapper.h:198
Mapper::Mapper
Mapper(const CommandMap *cm, bool caseSensitive)
Definition:
cmdmapper.cpp:243
CMD_AMP
Definition:
cmdmapper.h:32
CMD_SINCE
Definition:
cmdmapper.h:89
HTML_BLOCKQUOTE
Definition:
cmdmapper.h:174
CMD_ENDPARBLOCK
Definition:
cmdmapper.h:126
CMD_NOTE
Definition:
cmdmapper.h:71
CMD_DOT
Definition:
cmdmapper.h:101
CMD_XMLONLY
Definition:
cmdmapper.h:100
CMD_VERBINCLUDE
Definition:
cmdmapper.h:96
CMD_ENDINTERNAL
Definition:
cmdmapper.h:124
XML_DESCRIPTION
Definition:
cmdmapper.h:180
HTML_TD
Definition:
cmdmapper.h:152
CMD_JAVALINK
Definition:
cmdmapper.h:93
CMD_INTERNALREF
Definition:
cmdmapper.h:63
CMD_DOTFILE
Definition:
cmdmapper.h:45
CMD_STARTUML
Definition:
cmdmapper.h:131
HTML_H1
Definition:
cmdmapper.h:166
CMD_PARBLOCK
Definition:
cmdmapper.h:125
XML_TYPEPARAM
Definition:
cmdmapper.h:197
CMD_PLUS
Definition:
cmdmapper.h:135
CMD_IMAGE
Definition:
cmdmapper.h:60
HTML_HR
Definition:
cmdmapper.h:158
HTML_DT
Definition:
cmdmapper.h:160
HTML_OL
Definition:
cmdmapper.h:154
CMD_CODE
Definition:
cmdmapper.h:40
XML_CODE
Definition:
cmdmapper.h:179
CMD_SECREFITEM
Definition:
cmdmapper.h:78
CMD_MSCFILE
Definition:
cmdmapper.h:113
CMD_REF
Definition:
cmdmapper.h:77
XML_PARAM
Definition:
cmdmapper.h:188
CMD_DBONLY
Definition:
cmdmapper.h:122
XML_LISTHEADER
Definition:
cmdmapper.h:186
HTML_TABLE
Definition:
cmdmapper.h:143
HTML_UL
Definition:
cmdmapper.h:155
XML_ITEM
Definition:
cmdmapper.h:184
HTML_A
Definition:
cmdmapper.h:163
Mappers::htmlTagMapper
static Mapper * htmlTagMapper
Definition:
cmdmapper.h:220
HTML_EMPHASIS
Definition:
cmdmapper.h:157
CMD_ENDLATEXONLY
Definition:
cmdmapper.h:49
HTML_TR
Definition:
cmdmapper.h:151
CMD_LATEXINCLUDE
Definition:
cmdmapper.h:128
CMD_NDASH
Definition:
cmdmapper.h:129
CMD_ENDHTMLONLY
Definition:
cmdmapper.h:48
QString
The QString class provides an abstraction of Unicode text and the classic C null-terminated char arra...
Definition:
qstring.h:350
HTML_H2
Definition:
cmdmapper.h:167
Mapper::m_cs
bool m_cs
Definition:
cmdmapper.h:212
CMD_LINEBREAK
Definition:
cmdmapper.h:69
CMD_PERCENT
Definition:
cmdmapper.h:74
CMD_SKIPLINE
Definition:
cmdmapper.h:91
XML_INCLUDE
Definition:
cmdmapper.h:183
CMD_EXCEPTION
Definition:
cmdmapper.h:54
CMD_PUNT
Definition:
cmdmapper.h:134
HTML_DIV
Definition:
cmdmapper.h:173
CMD_DCOLON
Definition:
cmdmapper.h:114
CMD_ENDLINK
Definition:
cmdmapper.h:50
HTML_H3
Definition:
cmdmapper.h:168
CMD_SUBPAGE
Definition:
cmdmapper.h:85
CMD_MINUS
Definition:
cmdmapper.h:136
CMD_SUBSUBSECTION
Definition:
cmdmapper.h:87
CMD_DONTINCLUDE
Definition:
cmdmapper.h:44
CMD_PARAGRAPH
Definition:
cmdmapper.h:88
CMD_RETURN
Definition:
cmdmapper.h:80
HTML_BOLD
Definition:
cmdmapper.h:164
CMD_TPARAM
Definition:
cmdmapper.h:109
CMD_VHDLFLOW
Definition:
cmdmapper.h:121
CMD_SUBSECTION
Definition:
cmdmapper.h:86
Mappers
Definition:
cmdmapper.h:216
CMD_ENDVERBATIM
Definition:
cmdmapper.h:52
CMD_POST
Definition:
cmdmapper.h:75
SIMPLESECT_BIT
const int SIMPLESECT_BIT
Definition:
cmdmapper.h:26
XML_C
Definition:
cmdmapper.h:178
CMD_INCLUDE
Definition:
cmdmapper.h:61
CMD_VERBATIM
Definition:
cmdmapper.h:95
CMD_XREFITEM
Definition:
cmdmapper.h:99
CMD_SECTION
Definition:
cmdmapper.h:84
XML_EXCEPTION
Definition:
cmdmapper.h:182
CMD_DOLLAR
Definition:
cmdmapper.h:43
Mapper::m_map
QDict< int > m_map
Definition:
cmdmapper.h:211
XML_SUMMARY
Definition:
cmdmapper.h:195
Mapper::find
QString find(const int n)
Definition:
cmdmapper.cpp:233
CMD_ENDUML
Definition:
cmdmapper.h:132
CMD_BSLASH
Definition:
cmdmapper.h:39
cet::n
std::void_t< T > n
Definition:
metaprogramming.h:28
CMD_RTFONLY
Definition:
cmdmapper.h:118
CMD_EMPHASIS
Definition:
cmdmapper.h:46
HTML_TH
Definition:
cmdmapper.h:153
CMD_ENDMANONLY
Definition:
cmdmapper.h:106
CommandMap
Definition:
cmdmapper.cpp:22
HTML_UNKNOWN
Definition:
cmdmapper.h:141
CMD_COPYBRIEF
Definition:
cmdmapper.h:110
XML_PERMISSION
Definition:
cmdmapper.h:190
CMD_AT
Definition:
cmdmapper.h:34
XML_SEE
Definition:
cmdmapper.h:193
CMD_SKIP
Definition:
cmdmapper.h:90
HTML_SPAN
Definition:
cmdmapper.h:172
CMD_PRE
Definition:
cmdmapper.h:76
XML_SEEALSO
Definition:
cmdmapper.h:194
CMD_SETSCOPE
Definition:
cmdmapper.h:133
Mapper
Definition:
cmdmapper.h:204
CMD_INTERNAL
Definition:
cmdmapper.h:62
CMD_LESS
Definition:
cmdmapper.h:66
HTML_BR
Definition:
cmdmapper.h:162
Mapper::map
int map(const char *n)
Definition:
cmdmapper.cpp:225
XML_EXAMPLE
Definition:
cmdmapper.h:181
XML_PARA
Definition:
cmdmapper.h:187
CMD_AUTHORS
Definition:
cmdmapper.h:37
CMD_ENDCODE
Definition:
cmdmapper.h:47
HTML_CODE
Definition:
cmdmapper.h:146
CMD_COPYDOC
Definition:
cmdmapper.h:41
HTML_CAPTION
Definition:
cmdmapper.h:144
CMD_BOLD
Definition:
cmdmapper.h:38
CMD_ENDRTFONLY
Definition:
cmdmapper.h:119
XML_REMARKS
Definition:
cmdmapper.h:191
HTML_LI
Definition:
cmdmapper.h:156
CMD_UNKNOWN
Definition:
cmdmapper.h:30
CMD_ENDMSC
Definition:
cmdmapper.h:104
HTML_H5
Definition:
cmdmapper.h:170
CMD_STARTCODE
Definition:
cmdmapper.h:92
CMD_ENDDOT
Definition:
cmdmapper.h:102
CMD_PAR
Definition:
cmdmapper.h:72
CMD_ENDXMLONLY
Definition:
cmdmapper.h:53
CMD_FORMULA
Definition:
cmdmapper.h:55
CMD_COPYRIGHT
Definition:
cmdmapper.h:115
Mappers::cmdMapper
static Mapper * cmdMapper
Definition:
cmdmapper.h:219
CMD_CITE
Definition:
cmdmapper.h:116
HTML_H6
Definition:
cmdmapper.h:171
XML_VALUE
Definition:
cmdmapper.h:199
CMD_VERSION
Definition:
cmdmapper.h:97
CMD_ENDSECREFLIST
Definition:
cmdmapper.h:51
CMD_HASH
Definition:
cmdmapper.h:57
CMD_LI
Definition:
cmdmapper.h:67
CMD_MSC
Definition:
cmdmapper.h:103
CMD_DIAFILE
Definition:
cmdmapper.h:127
qdict.h
HTML_PRE
Definition:
cmdmapper.h:148
CMD_SNIPPET
Definition:
cmdmapper.h:117
CMD_LINK
Definition:
cmdmapper.h:70
HTML_SUB
Definition:
cmdmapper.h:149
CMD_REMARK
Definition:
cmdmapper.h:79
XML_RETURNS
Definition:
cmdmapper.h:192
XML_INHERITDOC
Definition:
cmdmapper.h:200
HTML_IMG
Definition:
cmdmapper.h:147
HTML_SMALL
Definition:
cmdmapper.h:145
HTML_DL
Definition:
cmdmapper.h:159
CMD_MANONLY
Definition:
cmdmapper.h:105
CMD_AUTHOR
Definition:
cmdmapper.h:36
CMD_ATTENTION
Definition:
cmdmapper.h:35
HTML_H4
Definition:
cmdmapper.h:169
XML_TERM
Definition:
cmdmapper.h:196
CMD_PIPE
Definition:
cmdmapper.h:120
CMD_PARAM
Definition:
cmdmapper.h:73
CMD_ENDDBONLY
Definition:
cmdmapper.h:123
CMD_LATEXONLY
Definition:
cmdmapper.h:65
HtmlTagType
HtmlTagType
Definition:
cmdmapper.h:139
CMD_COPYDETAILS
Definition:
cmdmapper.h:111
CMD_WARNING
Definition:
cmdmapper.h:98
CMD_INCWITHLINES
Definition:
cmdmapper.h:107
CMD_ANCHOR
Definition:
cmdmapper.h:33
HTML_P
Definition:
cmdmapper.h:165
XML_LIST
Definition:
cmdmapper.h:185
CMD_UNTIL
Definition:
cmdmapper.h:94
CMD_MDASH
Definition:
cmdmapper.h:130
CMD_GREATER
Definition:
cmdmapper.h:56
XML_CmdMask
Definition:
cmdmapper.h:176
CMD_DATE
Definition:
cmdmapper.h:42
HTML_DD
Definition:
cmdmapper.h:161
CMD_LINE
Definition:
cmdmapper.h:68
HTML_SUP
Definition:
cmdmapper.h:150
CMD_SECREFLIST
Definition:
cmdmapper.h:83
CMD_INVARIANT
Definition:
cmdmapper.h:64
CMD_SA
Definition:
cmdmapper.h:82
XML_PARAMREF
Definition:
cmdmapper.h:189
CMD_ADDINDEX
Definition:
cmdmapper.h:31
Generated by
1.8.11