Sen API
Sen Libraries
Toggle main menu visibility
Loading...
Searching...
No Matches
html.h
Go to the documentation of this file.
1
// === html.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_HTML_H
9
#define SEN_LIBS_GEN_INCLUDE_SEN_GEN_HTML_H
10
11
#include "
sen/core/base/compiler_macros.h
"
12
#include "
sen/core/lang/stl_resolver.h
"
13
14
#include <filesystem>
15
#include <map>
16
#include <memory>
17
#include <string>
18
19
namespace
sen::gen
20
{
21
25
class
HtmlGenerator
26
{
27
SEN_NOCOPY_NOMOVE(
HtmlGenerator
)
28
29
public
:
30
HtmlGenerator
();
31
~HtmlGenerator
();
32
35
using
FileContents
= std::map<std::filesystem::path, std::string>;
36
40
[[nodiscard]]
FileContents
generate
(
const
sen::lang::TypeSetContext
& typeSets,
const
std::string& title);
41
42
private
:
43
class
Impl;
44
std::unique_ptr<Impl> pimpl_;
45
};
46
47
}
// namespace sen::gen
48
49
#endif
// SEN_LIBS_GEN_INCLUDE_SEN_GEN_HTML_H
sen::gen::HtmlGenerator::FileContents
std::map< std::filesystem::path, std::string > FileContents
Map of relative output path -> rendered file contents: an index.html and the four files it names,...
Definition
html.h:35
sen::gen::HtmlGenerator::HtmlGenerator
HtmlGenerator()
sen::gen::HtmlGenerator::generate
FileContents generate(const sen::lang::TypeSetContext &typeSets, const std::string &title)
Renders the application and the model it displays. title names the model on screen....
sen::gen::HtmlGenerator::~HtmlGenerator
~HtmlGenerator()
sen::lang::TypeSetContext
The set of types used during resolution.
Definition
stl_resolver.h:51
compiler_macros.h
sen::gen
Definition
cpp.h:21
stl_resolver.h
libs
gen
include
sen
gen
html.h
Generated by
1.17.0