Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
sqlcode.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2020 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
17
#ifndef SQLCODE_H
18
#define SQLCODE_H
19
20
#include <memory>
21
22
#include "
parserintf.h
"
23
24
/** SQL scanner. Only support syntax highlighting of code at the moment.
25
*/
26
class
SQLCodeParser
final :
public
CodeParserInterface
27
{
28
public
:
29
SQLCodeParser
();
30
~SQLCodeParser
()
override
;
31
NON_COPYABLE
(
SQLCodeParser
)
32
33
void
parseCode
(
OutputCodeList
&codeOutIntf,
34
const
DString
&scopeName,
35
const
DString
&input,
36
SrcLangExt
,
37
bool
stripCodeComments,
38
const
CodeParserOptions
&options
39
)
override
;
40
void
resetCodeParserState
()
override
;
41
private
:
42
struct
Private
;
43
std::unique_ptr<Private>
p
;
44
};
45
46
47
#endif
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:84
OutputCodeList
Class representing a list of different code generators.
Definition
outputlist.h:162
SQLCodeParser::parseCode
void parseCode(OutputCodeList &codeOutIntf, const DString &scopeName, const DString &input, SrcLangExt, bool stripCodeComments, const CodeParserOptions &options) override
Parses a source file or fragment with the goal to produce highlighted and cross-referenced output.
Definition
sqlcode.l:409
SQLCodeParser::p
std::unique_ptr< Private > p
Definition
sqlcode.h:43
SQLCodeParser::resetCodeParserState
void resetCodeParserState() override
Resets the state of the code parser.
Definition
sqlcode.l:402
SQLCodeParser::SQLCodeParser
SQLCodeParser()
Definition
sqlcode.l:388
SQLCodeParser::~SQLCodeParser
~SQLCodeParser() override
Definition
sqlcode.l:397
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
CodeParserOptions
Options to configure the code parser.
Definition
parserintf.h:77
SQLCodeParser::Private
Definition
sqlcode.l:383
SrcLangExt
SrcLangExt
Definition
types.h:207
src
sqlcode.h
Generated by
1.19.0