The OutputCodeRecorder
Class Reference
Implementation that allows capturing calls made to the code interface to later invoke them on a OutputCodeList via replay(). More...
Declaration
Included Headers
Base class
class | OutputCodeIntf |
Base class for code generators. More... | |
Public Member Functions Index
OutputType | type () const override |
void | codify (const QCString &s) override |
void | stripCodeComments (bool) override |
void | startSpecialComment () override |
void | endSpecialComment () override |
void | setStripIndentAmount (size_t) override |
std::unique_ptr< OutputCodeIntf > | clone () override |
void | writeCodeLink (CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) override |
void | writeLineNumber (const QCString &ref, const QCString &file, const QCString &anchor, int lineNumber, bool writeLineAnchor) override |
void | writeTooltip (const QCString &id, const DocLinkInfo &docInfo, const QCString &decl, const QCString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) override |
void | startCodeLine (int) override |
void | endCodeLine () override |
void | startFontClass (const QCString &c) override |
void | endFontClass () override |
void | writeCodeAnchor (const QCString &name) override |
void | startCodeFragment (const QCString &style) override |
void | endCodeFragment (const QCString &style) override |
void | startFold (int lineNr, const QCString &startMarker, const QCString &endMarker) override |
void | endFold () override |
void | replay (OutputCodeList &ol, int startLine, int endLine, bool showLineNumbers, bool stripComment, size_t stripIndentAmount) |
Private Member Functions Index
void | startNewLine (int lineNr) |
Private Member Attributes Index
std::vector< CallInfo > | m_calls |
std::vector< size_t > | m_lineOffset |
bool | m_showLineNumbers = false |
bool | m_insideSpecialComment = false |
Description
Implementation that allows capturing calls made to the code interface to later invoke them on a OutputCodeList via replay().
Definition at line 111 of file outputlist.h.
Public Member Functions
clone()
| inline virtual |
Definition at line 120 of file outputlist.h.
codify()
| virtual |
Declaration at line 115 of file outputlist.h, definition at line 231 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
endCodeFragment()
| virtual |
Declaration at line 135 of file outputlist.h, definition at line 332 of file outputlist.cpp.
endCodeLine()
| virtual |
Declaration at line 130 of file outputlist.h, definition at line 296 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
endFold()
| virtual |
Declaration at line 137 of file outputlist.h, definition at line 344 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
endFontClass()
| virtual |
Declaration at line 132 of file outputlist.h, definition at line 312 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
endSpecialComment()
| virtual |
Declaration at line 118 of file outputlist.h, definition at line 248 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
replay()
|
Declaration at line 139 of file outputlist.h, definition at line 352 of file outputlist.cpp.
References OutputCodeList::endCodeLine, OutputCodeList::endSpecialComment, m_calls, m_lineOffset, m_showLineNumbers, OutputCodeList::setStripIndentAmount, OutputCodeList::startSpecialComment, OutputCodeList::stripCodeComments and stripCodeComments.
Referenced by CodeFragmentManager::parseCodeFragment.
setStripIndentAmount()
| inline virtual |
Definition at line 119 of file outputlist.h.
startCodeFragment()
| virtual |
Declaration at line 134 of file outputlist.h, definition at line 328 of file outputlist.cpp.
startCodeLine()
| virtual |
Declaration at line 129 of file outputlist.h, definition at line 287 of file outputlist.cpp.
References m_calls, m_insideSpecialComment and startNewLine.
startFold()
| virtual |
Declaration at line 136 of file outputlist.h, definition at line 336 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
startFontClass()
| virtual |
Declaration at line 131 of file outputlist.h, definition at line 304 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
startSpecialComment()
| virtual |
Declaration at line 117 of file outputlist.h, definition at line 239 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
stripCodeComments()
| inline virtual |
Definition at line 116 of file outputlist.h.
Referenced by replay.
type()
| inline virtual |
Definition at line 114 of file outputlist.h.
Reference Recorder.
Referenced by writeCodeLink.
writeCodeAnchor()
| virtual |
Declaration at line 133 of file outputlist.h, definition at line 320 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
writeCodeLink()
| virtual |
Declaration at line 121 of file outputlist.h, definition at line 257 of file outputlist.cpp.
References m_calls, m_insideSpecialComment and type.
writeLineNumber()
| virtual |
Declaration at line 125 of file outputlist.h, definition at line 268 of file outputlist.cpp.
References m_calls, m_insideSpecialComment, m_showLineNumbers and startNewLine.
writeTooltip()
| virtual |
Declaration at line 127 of file outputlist.h, definition at line 278 of file outputlist.cpp.
References m_calls and m_insideSpecialComment.
Private Member Functions
startNewLine()
|
Declaration at line 141 of file outputlist.h, definition at line 217 of file outputlist.cpp.
References m_calls and m_lineOffset.
Referenced by startCodeLine and writeLineNumber.
Private Member Attributes
m_calls
|
Definition at line 152 of file outputlist.h.
Referenced by codify, endCodeLine, endFold, endFontClass, endSpecialComment, replay, startCodeLine, startFold, startFontClass, startNewLine, startSpecialComment, writeCodeAnchor, writeCodeLink, writeLineNumber and writeTooltip.
m_insideSpecialComment
|
Definition at line 155 of file outputlist.h.
Referenced by codify, endCodeLine, endFold, endFontClass, endSpecialComment, startCodeLine, startFold, startFontClass, startSpecialComment, writeCodeAnchor, writeCodeLink, writeLineNumber and writeTooltip.
m_lineOffset
|
Definition at line 153 of file outputlist.h.
Referenced by replay and startNewLine.
m_showLineNumbers
|
Definition at line 154 of file outputlist.h.
Referenced by replay and writeLineNumber.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.