Main Page
Related Pages
Modules
Namespaces
Classes
Files
Examples
File List
File Members
doxygen-1.8.11
src
xmldocvisitor.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 _XMLDOCVISITOR_H
20
#define _XMLDOCVISITOR_H
21
22
#include "
docvisitor.h
"
23
#include <
qstack.h
>
24
#include <
qcstring.h
>
25
26
class
FTextStream
;
27
class
CodeOutputInterface
;
28
class
QCString
;
29
30
/*! @brief Concrete visitor implementation for XML output. */
31
class
XmlDocVisitor
:
public
DocVisitor
32
{
33
public
:
34
XmlDocVisitor
(
FTextStream
&
t
,
CodeOutputInterface
&ci);
35
36
//--------------------------------------
37
// visitor functions for leaf nodes
38
//--------------------------------------
39
40
void
visit
(
DocWord
*);
41
void
visit
(
DocLinkedWord
*);
42
void
visit
(
DocWhiteSpace
*);
43
void
visit
(
DocSymbol
*);
44
void
visit
(
DocURL
*);
45
void
visit
(
DocLineBreak
*);
46
void
visit
(
DocHorRuler
*);
47
void
visit
(
DocStyleChange
*);
48
void
visit
(
DocVerbatim
*);
49
void
visit
(
DocAnchor
*);
50
void
visit
(
DocInclude
*);
51
void
visit
(
DocIncOperator
*);
52
void
visit
(
DocFormula
*);
53
void
visit
(
DocIndexEntry
*);
54
void
visit
(
DocSimpleSectSep
*);
55
void
visit
(
DocCite
*);
56
57
//--------------------------------------
58
// visitor functions for compound nodes
59
//--------------------------------------
60
61
void
visitPre
(
DocAutoList
*);
62
void
visitPost
(
DocAutoList
*);
63
void
visitPre
(
DocAutoListItem
*);
64
void
visitPost
(
DocAutoListItem
*);
65
void
visitPre
(
DocPara
*) ;
66
void
visitPost
(
DocPara
*);
67
void
visitPre
(
DocRoot
*);
68
void
visitPost
(
DocRoot
*);
69
void
visitPre
(
DocSimpleSect
*);
70
void
visitPost
(
DocSimpleSect
*);
71
void
visitPre
(
DocTitle
*);
72
void
visitPost
(
DocTitle
*);
73
void
visitPre
(
DocSimpleList
*);
74
void
visitPost
(
DocSimpleList
*);
75
void
visitPre
(
DocSimpleListItem
*);
76
void
visitPost
(
DocSimpleListItem
*);
77
void
visitPre
(
DocSection
*);
78
void
visitPost
(
DocSection
*);
79
void
visitPre
(
DocHtmlList
*);
80
void
visitPost
(
DocHtmlList
*) ;
81
void
visitPre
(
DocHtmlListItem
*);
82
void
visitPost
(
DocHtmlListItem
*);
83
//void visitPre(DocHtmlPre *);
84
//void visitPost(DocHtmlPre *);
85
void
visitPre
(
DocHtmlDescList
*);
86
void
visitPost
(
DocHtmlDescList
*);
87
void
visitPre
(
DocHtmlDescTitle
*);
88
void
visitPost
(
DocHtmlDescTitle
*);
89
void
visitPre
(
DocHtmlDescData
*);
90
void
visitPost
(
DocHtmlDescData
*);
91
void
visitPre
(
DocHtmlTable
*);
92
void
visitPost
(
DocHtmlTable
*);
93
void
visitPre
(
DocHtmlRow
*);
94
void
visitPost
(
DocHtmlRow
*) ;
95
void
visitPre
(
DocHtmlCell
*);
96
void
visitPost
(
DocHtmlCell
*);
97
void
visitPre
(
DocHtmlCaption
*);
98
void
visitPost
(
DocHtmlCaption
*);
99
void
visitPre
(
DocInternal
*);
100
void
visitPost
(
DocInternal
*);
101
void
visitPre
(
DocHRef
*);
102
void
visitPost
(
DocHRef
*);
103
void
visitPre
(
DocHtmlHeader
*);
104
void
visitPost
(
DocHtmlHeader
*);
105
void
visitPre
(
DocImage
*);
106
void
visitPost
(
DocImage
*);
107
void
visitPre
(
DocDotFile
*);
108
void
visitPost
(
DocDotFile
*);
109
110
void
visitPre
(
DocMscFile
*);
111
void
visitPost
(
DocMscFile
*);
112
void
visitPre
(
DocDiaFile
*);
113
void
visitPost
(
DocDiaFile
*);
114
void
visitPre
(
DocLink
*);
115
void
visitPost
(
DocLink
*);
116
void
visitPre
(
DocRef
*);
117
void
visitPost
(
DocRef
*);
118
void
visitPre
(
DocSecRefItem
*);
119
void
visitPost
(
DocSecRefItem
*);
120
void
visitPre
(
DocSecRefList
*);
121
void
visitPost
(
DocSecRefList
*);
122
//void visitPre(DocLanguage *);
123
//void visitPost(DocLanguage *);
124
void
visitPre
(
DocParamSect
*);
125
void
visitPost
(
DocParamSect
*);
126
void
visitPre
(
DocParamList
*);
127
void
visitPost
(
DocParamList
*);
128
void
visitPre
(
DocXRefItem
*);
129
void
visitPost
(
DocXRefItem
*);
130
void
visitPre
(
DocInternalRef
*);
131
void
visitPost
(
DocInternalRef
*);
132
void
visitPre
(
DocCopy
*);
133
void
visitPost
(
DocCopy
*);
134
void
visitPre
(
DocText
*);
135
void
visitPost
(
DocText
*);
136
void
visitPre
(
DocHtmlBlockQuote
*);
137
void
visitPost
(
DocHtmlBlockQuote
*);
138
void
visitPre
(
DocVhdlFlow
*);
139
void
visitPost
(
DocVhdlFlow
*);
140
void
visitPre
(
DocParBlock
*);
141
void
visitPost
(
DocParBlock
*);
142
143
private
:
144
145
//--------------------------------------
146
// helper functions
147
//--------------------------------------
148
149
void
filter
(
const
char
*
str
);
150
void
startLink
(
const
QCString
&ref,
const
QCString
&
file
,
151
const
QCString
&anchor);
152
void
endLink
();
153
154
void
pushEnabled
();
155
void
popEnabled
();
156
157
//--------------------------------------
158
// state variables
159
//--------------------------------------
160
161
FTextStream
&
m_t
;
162
CodeOutputInterface
&
m_ci
;
163
bool
m_insidePre
;
164
bool
m_hide
;
165
QStack<bool>
m_enabled
;
166
QCString
m_langExt
;
167
};
168
169
#endif
XmlDocVisitor::endLink
void endLink()
Definition:
xmldocvisitor.cpp:1049
DocHtmlBlockQuote
Definition:
docparser.h:1374
DocURL
Definition:
docparser.h:234
DocWord
Definition:
docparser.h:195
XmlDocVisitor::visitPre
void visitPre(DocAutoList *)
Definition:
xmldocvisitor.cpp:399
DocWhiteSpace
Definition:
docparser.h:428
DocHRef
Definition:
docparser.h:869
XmlDocVisitor::m_hide
bool m_hide
Definition:
xmldocvisitor.h:164
DocText
Definition:
docparser.h:1389
XmlDocVisitor::visit
void visit(DocWord *)
Definition:
xmldocvisitor.cpp:95
DocHorRuler
Definition:
docparser.h:261
DocTitle
Definition:
docparser.h:651
XmlDocVisitor::filter
void filter(const char *str)
Definition:
xmldocvisitor.cpp:1032
DocRef
Definition:
docparser.h:821
DocStyleChange
Definition:
docparser.h:309
DocAutoList
Definition:
docparser.h:616
DocCite
Definition:
docparser.h:287
QStack< bool >
DocHtmlCaption
Definition:
docparser.h:1288
DocRoot
Definition:
docparser.h:1400
DocHtmlCell
Definition:
docparser.h:1251
DocIndexEntry
Definition:
docparser.h:577
docvisitor.h
DocSimpleSect
Definition:
docparser.h:1046
FTextStream
Simplified and optimized version of QTextStream.
Definition:
ftextstream.h:11
DocPara
Definition:
docparser.h:1113
XmlDocVisitor::m_insidePre
bool m_insidePre
Definition:
xmldocvisitor.h:163
qcstring.h
DocSymbol
Definition:
docparser.h:344
DocVisitor
Abstract visitor that participates in the visitor pattern.
Definition:
docvisitor.h:90
DocLink
Definition:
docparser.h:800
XmlDocVisitor::m_ci
CodeOutputInterface & m_ci
Definition:
xmldocvisitor.h:162
DocVhdlFlow
Definition:
docparser.h:788
DocHtmlDescList
Definition:
docparser.h:921
DocHtmlListItem
Definition:
docparser.h:1219
DocMscFile
Definition:
docparser.h:740
DocVerbatim
Definition:
docparser.h:441
DocHtmlDescTitle
Definition:
docparser.h:906
DocHtmlHeader
Definition:
docparser.h:889
DocHtmlTable
Definition:
docparser.h:1345
reco_momentum_tuples.t
t
Definition:
reco_momentum_tuples.py:25
XmlDocVisitor::startLink
void startLink(const QCString &ref, const QCString &file, const QCString &anchor)
Definition:
xmldocvisitor.cpp:1037
cache_state.file
file
Definition:
cache_state.py:421
DocDiaFile
Definition:
docparser.h:764
DocHtmlRow
Definition:
docparser.h:1308
XmlDocVisitor
Concrete visitor implementation for XML output.
Definition:
xmldocvisitor.h:31
DocLineBreak
Definition:
docparser.h:250
DocSecRefList
Definition:
docparser.h:978
DocSecRefItem
Definition:
docparser.h:959
DocFormula
Definition:
docparser.h:557
XmlDocVisitor::m_enabled
QStack< bool > m_enabled
Definition:
xmldocvisitor.h:165
XmlDocVisitor::pushEnabled
void pushEnabled()
Definition:
xmldocvisitor.cpp:1054
DocParamSect
Definition:
docparser.h:1084
XmlDocVisitor::m_t
FTextStream & m_t
Definition:
xmldocvisitor.h:161
DocImage
Definition:
docparser.h:687
DocParamList
Definition:
docparser.h:1157
qstack.h
DocSection
Definition:
docparser.h:936
DocHtmlList
Definition:
docparser.h:1027
DocInternalRef
Definition:
docparser.h:851
DocInclude
Definition:
docparser.h:483
DocParBlock
Definition:
docparser.h:1002
DocAnchor
Definition:
docparser.h:272
XmlDocVisitor::XmlDocVisitor
XmlDocVisitor(FTextStream &t, CodeOutputInterface &ci)
Definition:
xmldocvisitor.cpp:86
DocSimpleSectSep
Definition:
docparser.h:1073
DocSimpleListItem
Definition:
docparser.h:1199
XmlDocVisitor::popEnabled
void popEnabled()
Definition:
xmldocvisitor.cpp:1059
DocHtmlDescData
Definition:
docparser.h:1237
QCString
Definition:
qcstring.h:131
CodeOutputInterface
Definition:
outputgen.h:59
XmlDocVisitor::visitPost
void visitPost(DocAutoList *)
Definition:
xmldocvisitor.cpp:412
DocLinkedWord
Definition:
docparser.h:209
DocSimpleList
Definition:
docparser.h:1015
DocDotFile
Definition:
docparser.h:716
DocAutoListItem
Definition:
docparser.h:634
str
static QCString str
Definition:
fortrancode.cpp:27098
DocInternal
Definition:
docparser.h:990
DocXRefItem
Definition:
docparser.h:664
XmlDocVisitor::m_langExt
QCString m_langExt
Definition:
xmldocvisitor.h:166
DocIncOperator
Definition:
docparser.h:522
DocCopy
Definition:
docparser.h:598
Generated by
1.8.11