Doxygen
Toggle main menu visibility
Loading...
Searching...
No Matches
codefragment.h
Go to the documentation of this file.
1
/******************************************************************************
2
*
3
* Copyright (C) 1997-2023 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 CODEFRAGMENT_H
17
#define CODEFRAGMENT_H
18
19
#include <memory>
20
21
#include "
qcstring.h
"
22
#include "
construct.h
"
23
24
class
OutputCodeList
;
25
class
Definition
;
26
class
MemberDef
;
27
class
FileDef
;
28
29
class
CodeFragmentManager
30
{
31
public
:
32
static
CodeFragmentManager
&
instance
();
33
void
parseCodeFragment
(
OutputCodeList
&codeOutList,
34
const
QCString
&fileName,
// -> input
35
const
QCString
&blockId,
36
const
QCString
&scopeName,
37
bool
showLineNumbers,
38
bool
trimLeft,
39
bool
stripCodeComments
40
);
41
private
:
42
CodeFragmentManager
();
43
~CodeFragmentManager
();
44
NON_COPYABLE
(
CodeFragmentManager
)
45
46
struct
Private
;
47
std::unique_ptr<Private>
p
;
48
};
49
50
#endif
CodeFragmentManager::parseCodeFragment
void parseCodeFragment(OutputCodeList &codeOutList, const QCString &fileName, const QCString &blockId, const QCString &scopeName, bool showLineNumbers, bool trimLeft, bool stripCodeComments)
Definition
codefragment.cpp:240
CodeFragmentManager::instance
static CodeFragmentManager & instance()
Definition
codefragment.cpp:189
CodeFragmentManager::~CodeFragmentManager
~CodeFragmentManager()
CodeFragmentManager::CodeFragmentManager
CodeFragmentManager()
Definition
codefragment.cpp:183
CodeFragmentManager::p
std::unique_ptr< Private > p
Definition
codefragment.h:47
Definition
The common base class of all entity definitions found in the sources.
Definition
definition.h:77
FileDef
A model of a file symbol.
Definition
filedef.h:99
MemberDef
A model of a class/file/namespace member symbol.
Definition
memberdef.h:48
OutputCodeList
Class representing a list of different code generators.
Definition
outputlist.h:165
QCString
This is an alternative implementation of QCString.
Definition
qcstring.h:101
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
qcstring.h
CodeFragmentManager::Private
Definition
codefragment.cpp:33
src
codefragment.h
Generated by
1.17.0