Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
code.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2015 by Dimitri van Heesch.
4
*
5
* Permission to use, copy, modify, and distribute this software and its
6
* documentation under the terms of the GNU General Public License is hereby
7
* granted. No representations are made about the suitability of this software
8
* for any purpose. It is provided "as is" without express or implied warranty.
9
* See the GNU General Public License for more details.
10
*
11
* Documents produced by Doxygen are derivative works derived from the
12
* input used in their production; they are not affected by this license.
13
*
14
*/
15
16
#ifndef CODE_H
17
#define CODE_H
18
19
#include "
construct.h
"
20
#include "
parserintf.h
"
21
22
class
DString
;
23
24
class
CCodeParser
final :
public
CodeParserInterface
25
{
26
public
:
27
CCodeParser
();
28
~CCodeParser
()
override
;
29
NON_COPYABLE
(
CCodeParser
)
30
void
parseCode
(
OutputCodeList
&codeOutIntf,
31
const
DString
&scopeName,
32
const
DString
&input,
33
SrcLangExt
lang,
34
bool
stripCodeComments,
35
const
CodeParserOptions
&options
36
)
override
;
37
void
resetCodeParserState
()
override
;
38
void
setInsideCodeLine
(
bool
inp);
39
bool
insideCodeLine
()
const
;
40
private
:
41
struct
Private
;
42
std::unique_ptr<Private>
p
;
43
};
44
45
#endif
CCodeParser::resetCodeParserState
void resetCodeParserState() override
Resets the state of the code parser.
Definition
code.l:4070
CCodeParser::CCodeParser
CCodeParser()
Definition
code.l:4056
CCodeParser::setInsideCodeLine
void setInsideCodeLine(bool inp)
Definition
code.l:4082
CCodeParser::p
std::unique_ptr< Private > p
Definition
code.h:42
CCodeParser::parseCode
void parseCode(OutputCodeList &codeOutIntf, const DString &scopeName, const DString &input, SrcLangExt lang, bool stripCodeComments, const CodeParserOptions &options) override
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
Definition
code.l:4094
CCodeParser::insideCodeLine
bool insideCodeLine() const
Definition
code.l:4088
CodeParserInterface
Abstract interface for code parsers.
Definition
parserintf.h:141
DString
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition
dstring.h:88
OutputCodeList
Class representing a list of different code generators.
Definition
outputlist.h:162
construct.h
NON_COPYABLE
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition
construct.h:37
parserintf.h
CCodeParser::Private
Definition
code.l:4051
CodeParserOptions
Options to configure the code parser.
Definition
parserintf.h:77
SrcLangExt
SrcLangExt
Definition
types.h:207
src
code.h
Generated by
1.19.0