Doxygen
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
23class DString;
24class OutputCodeList;
25
27{
28 public:
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:
42
43 struct Private;
44 std::unique_ptr<Private> p;
45};
46
47#endif
static CodeFragmentManager & instance()
std::unique_ptr< Private > p
void parseCodeFragment(OutputCodeList &codeOutList, const DString &fileName, const DString &blockId, const DString &scopeName, bool showLineNumbers, bool trimLeft, bool stripCodeComments)
A String class for use with Doxygen wrapping std::string and adding some additional functionality off...
Definition dstring.h:88
Class representing a list of different code generators.
Definition outputlist.h:162
#define NON_COPYABLE(cls)
Macro to help implementing the rule of 5 for a non-copyable & movable class.
Definition construct.h:37