Sen API
Sen Libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
plantuml.h
Go to the documentation of this file.
1
// === plantuml.h ======================================================================================================
2
// Sen Infrastructure
3
// Released under the Apache License v2.0 (SPDX-License-Identifier Apache-2.0).
4
// See the LICENSE.txt file for more information.
5
// © Airbus SAS, Airbus Helicopters, and Airbus Defence and Space SAU/GmbH/SAS.
6
// =====================================================================================================================
7
8
#ifndef SEN_LIBS_GEN_INCLUDE_SEN_GEN_PLANTUML_H
9
#define SEN_LIBS_GEN_INCLUDE_SEN_GEN_PLANTUML_H
10
11
#include "
sen/core/base/compiler_macros.h
"
12
#include "
sen/core/lang/stl_resolver.h
"
13
14
#include <memory>
15
#include <string>
16
17
namespace
sen::gen
18
{
19
21
enum class
PlantUMLGenerationMode
22
{
23
all
,
24
onlyClasses
,
25
onlyBasicTypes
26
};
27
29
enum class
PlantUMLEnumMode
30
{
31
all
,
32
noEnumerators
33
};
34
37
class
PlantUMLGenerator
38
{
39
SEN_NOCOPY_NOMOVE(
PlantUMLGenerator
)
40
41
public
:
42
PlantUMLGenerator
();
43
~PlantUMLGenerator
();
44
48
[[nodiscard]] std::string
generate
(
const
sen::lang::TypeSetContext
& typeSets,
49
PlantUMLGenerationMode
generationMode,
50
PlantUMLEnumMode
enumMode);
51
52
private
:
53
class
Impl;
54
std::unique_ptr<Impl> pimpl_;
55
};
56
57
}
// namespace sen::gen
58
59
#endif
// SEN_LIBS_GEN_INCLUDE_SEN_GEN_PLANTUML_H
sen::gen::PlantUMLGenerator::generate
std::string generate(const sen::lang::TypeSetContext &typeSets, PlantUMLGenerationMode generationMode, PlantUMLEnumMode enumMode)
Renders one PlantUML document covering every type set in the supplied context. The two mode parameter...
sen::gen::PlantUMLGenerator::~PlantUMLGenerator
~PlantUMLGenerator()
sen::gen::PlantUMLGenerator::PlantUMLGenerator
PlantUMLGenerator()
sen::lang::TypeSetContext
The set of types used during resolution.
Definition
stl_resolver.h:51
compiler_macros.h
sen::gen::PlantUMLEnumMode
PlantUMLEnumMode
Controls whether enum types contribute their enumerators to the rendered diagram.
Definition
plantuml.h:30
sen::gen::PlantUMLGenerationMode
PlantUMLGenerationMode
Selects which subset of the type set ends up in the rendered diagram.
Definition
plantuml.h:22
sen::gen::PlantUMLEnumMode::noEnumerators
@ noEnumerators
Definition
plantuml.h:32
sen::gen::PlantUMLGenerationMode::all
@ all
Definition
plantuml.h:23
sen::gen::PlantUMLGenerationMode::onlyBasicTypes
@ onlyBasicTypes
Definition
plantuml.h:25
sen::gen::PlantUMLGenerationMode::onlyClasses
@ onlyClasses
Definition
plantuml.h:24
sen::gen
Definition
cpp.h:21
stl_resolver.h
libs
gen
include
sen
gen
plantuml.h
Generated by
1.17.0