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 "
construct.h
"
22
23
class
DString
;
24
class
OutputCodeList
;
25
26
class
CodeFragmentManager
27
{
28
public
:
29
static
CodeFragmentManager
&
instance
();
30
void
parseCodeFragment
(
OutputCodeList
&codeOutList,
31
const
DString
&fileName,
// -> input
32
const
DString
&blockId,
33
const
DString
&scopeName,
34
bool
showLineNumbers,
35
bool
trimLeft,
36
bool
stripCodeComments
37
);
38
private
:
39
CodeFragmentManager
();
40
~CodeFragmentManager
();
41
NON_COPYABLE
(
CodeFragmentManager
)
42
43
struct
Private
;
44
std::unique_ptr<Private>
p
;
45
};
46
47
#endif
CodeFragmentManager::instance
static CodeFragmentManager & instance()
Definition
codefragment.cpp:190
CodeFragmentManager::~CodeFragmentManager
~CodeFragmentManager()
CodeFragmentManager::CodeFragmentManager
CodeFragmentManager()
Definition
codefragment.cpp:184
CodeFragmentManager::p
std::unique_ptr< Private > p
Definition
codefragment.h:44
CodeFragmentManager::parseCodeFragment
void parseCodeFragment(OutputCodeList &codeOutList, const DString &fileName, const DString &blockId, const DString &scopeName, bool showLineNumbers, bool trimLeft, bool stripCodeComments)
Definition
codefragment.cpp:242
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
CodeFragmentManager::Private
Definition
codefragment.cpp:34
src
codefragment.h
Generated by
1.19.0