Doxygen
fortrancode.h
浏览该文件的文档.
1 /******************************************************************************
2  *
3  *
4  *
5  * Copyright (C) 1997-2015 by Dimitri van Heesch.
6  *
7  * Permission to use, copy, modify, and distribute this software and its
8  * documentation under the terms of the GNU General Public License is hereby
9  * granted. No representations are made about the suitability of this software
10  * for any purpose. It is provided "as is" without express or implied warranty.
11  * See the GNU General Public License for more details.
12  *
13  * Documents produced by Doxygen are derivative works derived from the
14  * input used in their production; they are not affected by this license.
15  *
16  */
17 
18 #ifndef FORTRANCODE_H
19 #define FORTRANCODE_H
20 
21 #include "parserintf.h"
22 
24 class FileDef;
25 class MemberDef;
26 class QCString;
27 class Definition;
28 
30 {
31  public:
33  virtual ~FortranCodeParser();
34  void parseCode(CodeOutputInterface &codeOutIntf,
35  const QCString &scopeName,
36  const QCString &input,
37  SrcLangExt lang,
38  bool isExampleBlock,
39  const QCString &exampleName=QCString(),
40  const FileDef *fileDef=0,
41  int startLine=-1,
42  int endLine=-1,
43  bool inlineFragment=FALSE,
44  const MemberDef *memberDef=0,
45  bool showLineNumbers=TRUE,
46  const Definition *searchCtx=0,
47  bool collectXRefs=TRUE
48  );
49  void resetCodeParserState();
50 
51  private:
52  struct Private;
53  std::unique_ptr<Private> p;
54 };
55 
57 {
58  public:
60 };
61 
63 {
64  public:
66 };
67 
68 #endif
FortranCodeParser::parseCode
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.
Definition
The common base class of all entity definitions found in the sources.
Definition: definition.h:76
Private
@ Private
Definition: types.h:26
FortranCodeParserFree
Definition: fortrancode.h:56
FortranCodeParserFixed
Definition: fortrancode.h:62
CodeParserInterface
Abstract interface for code parsers.
Definition: parserintf.h:83
SrcLangExt
SrcLangExt
Language as given by extension
Definition: types.h:41
FortranFormat_Free
@ FortranFormat_Free
Definition: types.h:297
FortranCodeParserFree::FortranCodeParserFree
FortranCodeParserFree()
Definition: fortrancode.h:59
MemberDef
A model of a class/file/namespace member symbol.
Definition: memberdef.h:45
FortranCodeParserFixed::FortranCodeParserFixed
FortranCodeParserFixed()
Definition: fortrancode.h:65
FortranCodeParser
Definition: fortrancode.h:29
FortranCodeParser::FortranCodeParser
FortranCodeParser(FortranFormat format=FortranFormat_Unknown)
parserintf.h
FortranCodeParser::~FortranCodeParser
virtual ~FortranCodeParser()
TRUE
#define TRUE
Definition: qcstring.h:36
FortranFormat
FortranFormat
Definition: types.h:294
CodeOutputInterface
Output interface for code parser.
Definition: outputgen.h:61
FileDef
A model of a file symbol.
Definition: filedef.h:73
FortranCodeParser::p
std::unique_ptr< Private > p
Definition: fortrancode.h:52
FortranFormat_Fixed
@ FortranFormat_Fixed
Definition: types.h:298
FortranCodeParser::resetCodeParserState
void resetCodeParserState()
Resets the state of the code parser.
FortranFormat_Unknown
@ FortranFormat_Unknown
Definition: types.h:296
FALSE
#define FALSE
Definition: qcstring.h:33
QCString
This is an alternative implementation of QCString.
Definition: qcstring.h:108