Doxygen
Loading...
Searching...
No Matches
cmdmapper.h File Reference
#include <unordered_map>
#include <string>
#include <memory>
#include "qcstring.h"
+ Include dependency graph for cmdmapper.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Mapper< T >
 Class representing a mapping from command names to command IDs. More...
 

Namespaces

namespace  Mappers
 Namespace for the doxygen and HTML command mappers.
 

Typedefs

template<typename T>
using CommandMap = std::unordered_map< std::string, T >
 

Enumerations

enum class  CommandType {
  SIMPLESECT_BIT = 0x1000 , UNKNOWN = 0 , CMD_ADDINDEX = 1 , CMD_AMP = 2 ,
  CMD_ANCHOR = 3 , CMD_AT = 4 , CMD_ATTENTION = 5 | SIMPLESECT_BIT , CMD_AUTHOR = 6 | SIMPLESECT_BIT ,
  CMD_AUTHORS = 7 | SIMPLESECT_BIT , CMD_BOLD = 8 , CMD_BSLASH = 9 , CMD_CODE = 10 ,
  CMD_COPYDOC = 11 , CMD_DATE = 12 | SIMPLESECT_BIT , CMD_DOLLAR = 13 , CMD_DONTINCLUDE = 14 ,
  CMD_DOTFILE = 15 , CMD_EMPHASIS = 16 , CMD_ENDCODE = 17 , CMD_ENDHTMLONLY = 18 ,
  CMD_ENDLATEXONLY = 19 , CMD_ENDLINK = 20 , CMD_ENDSECREFLIST = 21 , CMD_ENDVERBATIM = 22 ,
  CMD_ENDXMLONLY = 23 , CMD_EXCEPTION = 24 | SIMPLESECT_BIT , CMD_FORMULA = 25 , CMD_GREATER = 26 ,
  CMD_HASH = 27 , CMD_HTMLINCLUDE = 28 , CMD_HTMLONLY = 29 , CMD_IMAGE = 30 ,
  CMD_INCLUDE = 31 , CMD_INTERNAL = 32 , CMD_INTERNALREF = 33 , CMD_INVARIANT = 34 | SIMPLESECT_BIT ,
  CMD_LATEXONLY = 35 , CMD_LESS = 36 , CMD_LI = 37 , CMD_LINE = 38 ,
  CMD_LINEBREAK = 39 , CMD_LINK = 40 , CMD_NOTE = 41 | SIMPLESECT_BIT , CMD_PAR = 42 | SIMPLESECT_BIT ,
  CMD_PARAM = 43 | SIMPLESECT_BIT , CMD_PERCENT = 44 , CMD_POST = 45 | SIMPLESECT_BIT , CMD_PRE = 46 | SIMPLESECT_BIT ,
  CMD_REF = 47 , CMD_SECREFITEM = 48 , CMD_REMARK = 49 | SIMPLESECT_BIT , CMD_RETURN = 50 | SIMPLESECT_BIT ,
  CMD_RETVAL = 51 | SIMPLESECT_BIT , CMD_SA = 52 | SIMPLESECT_BIT , CMD_SECREFLIST = 53 , CMD_SECTION = 54 ,
  CMD_SUBPAGE = 55 , CMD_SUBSECTION = 56 , CMD_SUBSUBSECTION = 57 , CMD_PARAGRAPH = 58 ,
  CMD_SINCE = 59 | SIMPLESECT_BIT , CMD_SKIP = 60 , CMD_SKIPLINE = 61 , CMD_STARTCODE = 62 ,
  CMD_JAVALINK = 63 , CMD_UNTIL = 64 , CMD_VERBATIM = 65 , CMD_VERBINCLUDE = 66 ,
  CMD_VERSION = 67 | SIMPLESECT_BIT , CMD_WARNING = 68 | SIMPLESECT_BIT , CMD_XREFITEM = 69 | SIMPLESECT_BIT , CMD_XMLONLY = 70 ,
  CMD_DOT = 71 , CMD_ENDDOT = 72 , CMD_MSC = 73 , CMD_ENDMSC = 74 ,
  CMD_MANONLY = 75 , CMD_ENDMANONLY = 76 , CMD_INCWITHLINES = 77 , CMD_INHERITDOC = 78 ,
  CMD_TPARAM = 79 | SIMPLESECT_BIT , CMD_COPYBRIEF = 80 , CMD_COPYDETAILS = 81 , CMD_QUOTE = 82 ,
  CMD_MSCFILE = 83 , CMD_DCOLON = 84 , CMD_COPYRIGHT = 85 | SIMPLESECT_BIT , CMD_CITE = 86 ,
  CMD_SNIPPET = 87 , CMD_RTFONLY = 88 , CMD_ENDRTFONLY = 89 , CMD_PIPE = 90 ,
  CMD_VHDLFLOW = 91 , CMD_DBONLY = 92 , CMD_ENDDBONLY = 93 , CMD_ENDINTERNAL = 94 ,
  CMD_PARBLOCK = 95 , CMD_ENDPARBLOCK = 96 , CMD_DIAFILE = 97 , CMD_LATEXINCLUDE = 98 ,
  CMD_NDASH = 99 , CMD_MDASH = 100 , CMD_STARTUML = 101 , CMD_ENDUML = 102 ,
  CMD_SETSCOPE = 103 , CMD_PUNT = 104 , CMD_PLUS = 105 , CMD_MINUS = 106 ,
  CMD_INCLUDEDOC = 107 , CMD_SNIPPETDOC = 108 , CMD_SNIPWITHLINES = 109 , CMD_EMOJI = 110 ,
  CMD_EQUAL = 111 , CMD_RTFINCLUDE = 112 , CMD_DOCBOOKINCLUDE = 113 , CMD_MANINCLUDE = 114 ,
  CMD_XMLINCLUDE = 115 , CMD_ILINE = 116 , CMD_ILITERAL = 117 , CMD_ENDILITERAL = 118 ,
  CMD_IFILE = 119 , CMD_SHOWDATE = 120 , CMD_ISTARTCODE = 121 , CMD_ENDICODE = 122 ,
  CMD_IVERBATIM = 123 , CMD_ENDIVERBATIM = 124 , CMD_IANCHOR = 125 , CMD_DOXYCONFIG = 126 ,
  CMD_IMPORTANT = 127 | SIMPLESECT_BIT , CMD_SUBPARAGRAPH = 128 , CMD_SUBSUBPARAGRAPH = 129 , CMD_IPREFIX = 130 ,
  CMD_PLANTUMLFILE = 131 , CMD_EXCLAMATION = 132 , CMD_QUESTION = 133
}
 
enum class  HtmlTagType {
  SIMPLESECT_BIT = 0x1000 , UNKNOWN = 0 , HTML_CENTER = 1 , HTML_TABLE = 2 ,
  HTML_CAPTION = 3 , HTML_SMALL = 4 , HTML_CODE = 5 , HTML_IMG = 6 ,
  HTML_PRE = 7 , HTML_SUB = 8 , HTML_SUP = 9 , HTML_TR = 10 ,
  HTML_TD = 11 , HTML_TH = 12 , HTML_OL = 13 , HTML_UL = 14 ,
  HTML_LI = 15 , HTML_EMPHASIS = 16 , HTML_HR = 17 , HTML_DL = 18 ,
  HTML_DT = 19 , HTML_DD = 20 , HTML_BR = 21 , HTML_A = 22 ,
  HTML_BOLD = 23 , HTML_P = 24 , HTML_H1 = 25 , HTML_H2 = 26 ,
  HTML_H3 = 27 , HTML_H4 = 28 , HTML_H5 = 29 , HTML_H6 = 30 ,
  HTML_SPAN = 31 , HTML_DIV = 32 , HTML_BLOCKQUOTE = 33 , HTML_STRIKE = 34 ,
  HTML_UNDERLINE = 35 , HTML_INS = 36 , HTML_DEL = 37 , HTML_S = 38 ,
  HTML_DETAILS = 39 , HTML_CITE = 40 , HTML_THEAD = 41 , HTML_TBODY = 42 ,
  HTML_TFOOT = 43 , HTML_KBD = 44 , XML_CmdMask = 0x100 , XML_C = XML_CmdMask + 0 ,
  XML_CODE = XML_CmdMask + 1 , XML_DESCRIPTION = XML_CmdMask + 2 , XML_EXAMPLE = XML_CmdMask + 3 , XML_EXCEPTION = XML_CmdMask + 4 ,
  XML_INCLUDE = XML_CmdMask + 5 , XML_ITEM = XML_CmdMask + 6 , XML_LIST = XML_CmdMask + 7 , XML_LISTHEADER = XML_CmdMask + 8 ,
  XML_PARA = XML_CmdMask + 9 , XML_PARAM = XML_CmdMask + 10 , XML_PARAMREF = XML_CmdMask + 11 , XML_PERMISSION = XML_CmdMask + 12 ,
  XML_REMARKS = XML_CmdMask + 13 , XML_RETURNS = XML_CmdMask + 14 , XML_SEE = XML_CmdMask + 15 , XML_SEEALSO = XML_CmdMask + 16 ,
  XML_SUMMARY = XML_CmdMask + 17 , XML_TERM = XML_CmdMask + 18 , XML_TYPEPARAM = XML_CmdMask + 19 , XML_TYPEPARAMREF = XML_CmdMask + 20 ,
  XML_VALUE = XML_CmdMask + 21 , XML_INHERITDOC = XML_CmdMask + 22
}
 

Typedef Documentation

◆ CommandMap

template<typename T>
using CommandMap = std::unordered_map< std::string, T >

Definition at line 25 of file cmdmapper.h.

Enumeration Type Documentation

◆ CommandType

enum class CommandType
strong
Enumerator
SIMPLESECT_BIT 
UNKNOWN 
CMD_ADDINDEX 
CMD_AMP 
CMD_ANCHOR 
CMD_AT 
CMD_ATTENTION 
CMD_AUTHOR 
CMD_AUTHORS 
CMD_BOLD 
CMD_BSLASH 
CMD_CODE 
CMD_COPYDOC 
CMD_DATE 
CMD_DOLLAR 
CMD_DONTINCLUDE 
CMD_DOTFILE 
CMD_EMPHASIS 
CMD_ENDCODE 
CMD_ENDHTMLONLY 
CMD_ENDLATEXONLY 
CMD_ENDLINK 
CMD_ENDSECREFLIST 
CMD_ENDVERBATIM 
CMD_ENDXMLONLY 
CMD_EXCEPTION 
CMD_FORMULA 
CMD_GREATER 
CMD_HASH 
CMD_HTMLINCLUDE 
CMD_HTMLONLY 
CMD_IMAGE 
CMD_INCLUDE 
CMD_INTERNAL 
CMD_INTERNALREF 
CMD_INVARIANT 
CMD_LATEXONLY 
CMD_LESS 
CMD_LI 
CMD_LINE 
CMD_LINEBREAK 
CMD_LINK 
CMD_NOTE 
CMD_PAR 
CMD_PARAM 
CMD_PERCENT 
CMD_POST 
CMD_PRE 
CMD_REF 
CMD_SECREFITEM 
CMD_REMARK 
CMD_RETURN 
CMD_RETVAL 
CMD_SA 
CMD_SECREFLIST 
CMD_SECTION 
CMD_SUBPAGE 
CMD_SUBSECTION 
CMD_SUBSUBSECTION 
CMD_PARAGRAPH 
CMD_SINCE 
CMD_SKIP 
CMD_SKIPLINE 
CMD_STARTCODE 
CMD_JAVALINK 
CMD_UNTIL 
CMD_VERBATIM 
CMD_VERBINCLUDE 
CMD_VERSION 
CMD_WARNING 
CMD_XREFITEM 
CMD_XMLONLY 
CMD_DOT 
CMD_ENDDOT 
CMD_MSC 
CMD_ENDMSC 
CMD_MANONLY 
CMD_ENDMANONLY 
CMD_INCWITHLINES 
CMD_INHERITDOC 
CMD_TPARAM 
CMD_COPYBRIEF 
CMD_COPYDETAILS 
CMD_QUOTE 
CMD_MSCFILE 
CMD_DCOLON 
CMD_COPYRIGHT 
CMD_CITE 
CMD_SNIPPET 
CMD_RTFONLY 
CMD_ENDRTFONLY 
CMD_PIPE 
CMD_VHDLFLOW 
CMD_DBONLY 
CMD_ENDDBONLY 
CMD_ENDINTERNAL 
CMD_PARBLOCK 
CMD_ENDPARBLOCK 
CMD_DIAFILE 
CMD_LATEXINCLUDE 
CMD_NDASH 
CMD_MDASH 
CMD_STARTUML 
CMD_ENDUML 
CMD_SETSCOPE 
CMD_PUNT 
CMD_PLUS 
CMD_MINUS 
CMD_INCLUDEDOC 
CMD_SNIPPETDOC 
CMD_SNIPWITHLINES 
CMD_EMOJI 
CMD_EQUAL 
CMD_RTFINCLUDE 
CMD_DOCBOOKINCLUDE 
CMD_MANINCLUDE 
CMD_XMLINCLUDE 
CMD_ILINE 
CMD_ILITERAL 
CMD_ENDILITERAL 
CMD_IFILE 
CMD_SHOWDATE 
CMD_ISTARTCODE 
CMD_ENDICODE 
CMD_IVERBATIM 
CMD_ENDIVERBATIM 
CMD_IANCHOR 
CMD_DOXYCONFIG 
CMD_IMPORTANT 
CMD_SUBPARAGRAPH 
CMD_SUBSUBPARAGRAPH 
CMD_IPREFIX 
CMD_PLANTUMLFILE 
CMD_EXCLAMATION 
CMD_QUESTION 

Definition at line 28 of file cmdmapper.h.

29{
30 SIMPLESECT_BIT = 0x1000,
31
32 UNKNOWN = 0,
33 CMD_ADDINDEX = 1,
34 CMD_AMP = 2,
35 CMD_ANCHOR = 3,
36 CMD_AT = 4,
40 CMD_BOLD = 8,
41 CMD_BSLASH = 9,
42 CMD_CODE = 10,
43 CMD_COPYDOC = 11,
45 CMD_DOLLAR = 13,
46 CMD_DONTINCLUDE = 14,
47 CMD_DOTFILE = 15,
48 CMD_EMPHASIS = 16,
49 CMD_ENDCODE = 17,
50 CMD_ENDHTMLONLY = 18,
52 CMD_ENDLINK = 20,
54 CMD_ENDVERBATIM = 22,
55 CMD_ENDXMLONLY = 23,
57 CMD_FORMULA = 25,
58 CMD_GREATER = 26,
59 CMD_HASH = 27,
60 CMD_HTMLINCLUDE = 28,
61 CMD_HTMLONLY = 29,
62 CMD_IMAGE = 30,
63 CMD_INCLUDE = 31,
64 CMD_INTERNAL = 32,
65 CMD_INTERNALREF = 33,
67 CMD_LATEXONLY = 35,
68 CMD_LESS = 36,
69 CMD_LI = 37,
70 CMD_LINE = 38,
71 CMD_LINEBREAK = 39,
72 CMD_LINK = 40,
76 CMD_PERCENT = 44,
79 CMD_REF = 47,
80 CMD_SECREFITEM = 48,
84 CMD_SA = 52 | SIMPLESECT_BIT ,
85 CMD_SECREFLIST = 53,
86 CMD_SECTION = 54,
87 CMD_SUBPAGE = 55,
88 CMD_SUBSECTION = 56,
90 CMD_PARAGRAPH = 58,
92 CMD_SKIP = 60,
93 CMD_SKIPLINE = 61,
94 CMD_STARTCODE = 62,
95 CMD_JAVALINK = 63,
96 CMD_UNTIL = 64,
97 CMD_VERBATIM = 65,
98 CMD_VERBINCLUDE = 66,
102 CMD_XMLONLY = 70,
103 CMD_DOT = 71,
104 CMD_ENDDOT = 72,
105 CMD_MSC = 73,
106 CMD_ENDMSC = 74,
107 CMD_MANONLY = 75,
108 CMD_ENDMANONLY = 76,
109 CMD_INCWITHLINES = 77,
110 CMD_INHERITDOC = 78,
112 CMD_COPYBRIEF = 80,
113 CMD_COPYDETAILS = 81,
114 CMD_QUOTE = 82,
115 CMD_MSCFILE = 83,
116 CMD_DCOLON = 84,
118 CMD_CITE = 86,
119 CMD_SNIPPET = 87,
120 CMD_RTFONLY = 88,
121 CMD_ENDRTFONLY = 89,
122 CMD_PIPE = 90,
123 CMD_VHDLFLOW = 91,
124 CMD_DBONLY = 92,
125 CMD_ENDDBONLY = 93,
126 CMD_ENDINTERNAL = 94,
127 CMD_PARBLOCK = 95,
128 CMD_ENDPARBLOCK = 96,
129 CMD_DIAFILE = 97,
130 CMD_LATEXINCLUDE = 98,
131 CMD_NDASH = 99,
132 CMD_MDASH = 100,
133 CMD_STARTUML = 101,
134 CMD_ENDUML = 102,
135 CMD_SETSCOPE = 103,
136 CMD_PUNT = 104,
137 CMD_PLUS = 105,
138 CMD_MINUS = 106,
139 CMD_INCLUDEDOC = 107,
140 CMD_SNIPPETDOC = 108,
142 CMD_EMOJI = 110,
143 CMD_EQUAL = 111,
144 CMD_RTFINCLUDE = 112,
146 CMD_MANINCLUDE = 114,
147 CMD_XMLINCLUDE = 115,
148 CMD_ILINE = 116,
149 CMD_ILITERAL = 117,
150 CMD_ENDILITERAL = 118,
151 CMD_IFILE = 119,
152 CMD_SHOWDATE = 120,
153 CMD_ISTARTCODE = 121,
154 CMD_ENDICODE = 122,
155 CMD_IVERBATIM = 123,
156 CMD_ENDIVERBATIM = 124,
157 CMD_IANCHOR = 125,
158 CMD_DOXYCONFIG = 126,
160 CMD_SUBPARAGRAPH = 128,
162 CMD_IPREFIX = 130,
163 CMD_PLANTUMLFILE = 131,
164 CMD_EXCLAMATION = 132,
165 CMD_QUESTION = 133
166};
@ CMD_ENDSECREFLIST
Definition cmdmapper.h:53
@ CMD_ENDLATEXONLY
Definition cmdmapper.h:51
@ CMD_ENDVERBATIM
Definition cmdmapper.h:54
@ CMD_DONTINCLUDE
Definition cmdmapper.h:46
@ CMD_SUBSUBSECTION
Definition cmdmapper.h:89
@ CMD_SUBSUBPARAGRAPH
Definition cmdmapper.h:161
@ CMD_INTERNALREF
Definition cmdmapper.h:65
@ CMD_ENDHTMLONLY
Definition cmdmapper.h:50
@ CMD_VERBINCLUDE
Definition cmdmapper.h:98
@ CMD_DOCBOOKINCLUDE
Definition cmdmapper.h:145
@ CMD_HTMLINCLUDE
Definition cmdmapper.h:60
@ CMD_SNIPWITHLINES
Definition cmdmapper.h:141

◆ HtmlTagType

enum class HtmlTagType
strong
Enumerator
SIMPLESECT_BIT 
UNKNOWN 
HTML_CENTER 
HTML_TABLE 
HTML_CAPTION 
HTML_SMALL 
HTML_CODE 
HTML_IMG 
HTML_PRE 
HTML_SUB 
HTML_SUP 
HTML_TR 
HTML_TD 
HTML_TH 
HTML_OL 
HTML_UL 
HTML_LI 
HTML_EMPHASIS 
HTML_HR 
HTML_DL 
HTML_DT 
HTML_DD 
HTML_BR 
HTML_A 
HTML_BOLD 
HTML_P 
HTML_H1 
HTML_H2 
HTML_H3 
HTML_H4 
HTML_H5 
HTML_H6 
HTML_SPAN 
HTML_DIV 
HTML_BLOCKQUOTE 
HTML_STRIKE 
HTML_UNDERLINE 
HTML_INS 
HTML_DEL 
HTML_S 
HTML_DETAILS 
HTML_CITE 
HTML_THEAD 
HTML_TBODY 
HTML_TFOOT 
HTML_KBD 
XML_CmdMask 
XML_C 
XML_CODE 
XML_DESCRIPTION 
XML_EXAMPLE 
XML_EXCEPTION 
XML_INCLUDE 
XML_ITEM 
XML_LIST 
XML_LISTHEADER 
XML_PARA 
XML_PARAM 
XML_PARAMREF 
XML_PERMISSION 
XML_REMARKS 
XML_RETURNS 
XML_SEE 
XML_SEEALSO 
XML_SUMMARY 
XML_TERM 
XML_TYPEPARAM 
XML_TYPEPARAMREF 
XML_VALUE 
XML_INHERITDOC 

Definition at line 168 of file cmdmapper.h.

169{
170 SIMPLESECT_BIT = 0x1000,
171
172 UNKNOWN = 0,
173 HTML_CENTER = 1,
174 HTML_TABLE = 2,
175 HTML_CAPTION = 3,
176 HTML_SMALL = 4,
177 HTML_CODE = 5,
178 HTML_IMG = 6,
179 HTML_PRE = 7,
180 HTML_SUB = 8,
181 HTML_SUP = 9,
182 HTML_TR = 10,
183 HTML_TD = 11,
184 HTML_TH = 12,
185 HTML_OL = 13,
186 HTML_UL = 14,
187 HTML_LI = 15,
188 HTML_EMPHASIS = 16,
189 HTML_HR = 17,
190 HTML_DL = 18,
191 HTML_DT = 19,
192 HTML_DD = 20,
193 HTML_BR = 21,
194 HTML_A = 22,
195 HTML_BOLD = 23,
196 HTML_P = 24,
197 HTML_H1 = 25,
198 HTML_H2 = 26,
199 HTML_H3 = 27,
200 HTML_H4 = 28,
201 HTML_H5 = 29,
202 HTML_H6 = 30,
203 HTML_SPAN = 31,
204 HTML_DIV = 32,
205 HTML_BLOCKQUOTE= 33,
206 HTML_STRIKE = 34,
207 HTML_UNDERLINE = 35,
208 HTML_INS = 36,
209 HTML_DEL = 37,
210 HTML_S = 38,
211 HTML_DETAILS = 39,
212 HTML_CITE = 40,
213 HTML_THEAD = 41,
214 HTML_TBODY = 42,
215 HTML_TFOOT = 43,
216 HTML_KBD = 44,
217
218 XML_CmdMask = 0x100,
219
220 XML_C = XML_CmdMask + 0,
221 XML_CODE = XML_CmdMask + 1,
226 XML_ITEM = XML_CmdMask + 6,
227 XML_LIST = XML_CmdMask + 7,
229 XML_PARA = XML_CmdMask + 9,
230 XML_PARAM = XML_CmdMask + 10,
235 XML_SEE = XML_CmdMask + 15,
238 XML_TERM = XML_CmdMask + 18,
241 XML_VALUE = XML_CmdMask + 21,
243};