Sen API
Sen Libraries
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
13
14#include <filesystem>
15#include <map>
16#include <memory>
17#include <string>
18
19namespace sen::gen
20{
21
26{
27 SEN_NOCOPY_NOMOVE(HtmlGenerator)
28
29public:
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
42private:
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
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
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....
The set of types used during resolution.
Definition stl_resolver.h:51
Definition cpp.h:21