#include <fortrancode.h>
|
| FortranCodeParser (FortranFormat format=FortranFormat_Unknown) |
|
virtual | ~FortranCodeParser () |
|
void | parseCode (CodeOutputInterface &codeOutIntf, const QCString &scopeName, const QCString &input, SrcLangExt lang, bool isExampleBlock, const QCString &exampleName=QCString(), const FileDef *fileDef=0, int startLine=-1, int endLine=-1, bool inlineFragment=FALSE, const MemberDef *memberDef=0, bool showLineNumbers=TRUE, const Definition *searchCtx=0, bool collectXRefs=TRUE) |
| Parses a source file or fragment with the goal to produce highlighted and cross-referenced output. 更多...
|
|
void | resetCodeParserState () |
| Resets the state of the code parser. 更多...
|
|
virtual | ~CodeParserInterface () |
|
◆ FortranCodeParser()
◆ ~FortranCodeParser()
virtual FortranCodeParser::~FortranCodeParser |
( |
| ) |
|
|
virtual |
◆ parseCode()
void FortranCodeParser::parseCode |
( |
CodeOutputInterface & |
codeOutIntf, |
|
|
const QCString & |
scopeName, |
|
|
const QCString & |
input, |
|
|
SrcLangExt |
lang, |
|
|
bool |
isExampleBlock, |
|
|
const QCString & |
exampleName = QCString() , |
|
|
const FileDef * |
fileDef = 0 , |
|
|
int |
startLine = -1 , |
|
|
int |
endLine = -1 , |
|
|
bool |
inlineFragment = FALSE , |
|
|
const MemberDef * |
memberDef = 0 , |
|
|
bool |
showLineNumbers = TRUE , |
|
|
const Definition * |
searchCtx = 0 , |
|
|
bool |
collectXRefs = TRUE |
|
) |
| |
|
virtual |
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
- 参数
-
[in] | codeOutIntf | Abstract interface for writing the result. |
[in] | scopeName | Name of scope to which the code belongs. |
[in] | input | Actual code in the form of a string |
[in] | lang | The programming language of the code fragment. |
[in] | isExampleBlock | TRUE iff the code is part of an example. |
[in] | exampleName | Name of the example. |
[in] | fileDef | File definition to which the code is associated. |
[in] | startLine | Starting line in case of a code fragment. |
[in] | endLine | Ending line of the code fragment. |
[in] | inlineFragment | Code fragment that is to be shown inline as part of the documentation. |
[in] | memberDef | Member definition to which the code is associated (non null in case of an inline fragment for a member). |
[in] | showLineNumbers | if set to TRUE and also fileDef is not 0, line numbers will be added to the source fragment |
[in] | searchCtx | context under which search data has to be stored. |
[in] | collectXRefs | collect cross-reference relations. |
实现了 CodeParserInterface.
◆ resetCodeParserState()
void FortranCodeParser::resetCodeParserState |
( |
| ) |
|
|
virtual |
Resets the state of the code parser.
Since multiple code fragments can together form a single example, an explicit function is used to reset the code parser state.
- 参见
- parseCode()
实现了 CodeParserInterface.
std::unique_ptr<Private> FortranCodeParser::p |
|
private |
该类的文档由以下文件生成: