Sen API
Sen Libraries
Loading...
Searching...
No Matches
cpp_templates.h
Go to the documentation of this file.
1// === cpp_templates.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_SRC_CPP_CPP_TEMPLATES_H
9#define SEN_LIBS_GEN_SRC_CPP_CPP_TEMPLATES_H
10
11// inja
12#include <inja/environment.hpp>
13#include <inja/template.hpp>
14
15namespace sen::gen::detail
16{
17
20{
21 inja::Template structType;
22 inja::Template enumType;
23 inja::Template variantType;
24 inja::Template sequenceType;
25 inja::Template aliasType;
26 inja::Template optionalType;
27 inja::Template quantityType;
28 inja::Template classType;
29};
30
32CppTemplateSet makeCppBaseHeaderTemplates(inja::Environment& env) noexcept;
33
35CppTemplateSet makeCppImplTemplates(inja::Environment& env) noexcept;
36
38inja::Template makeCppPackageExportTemplate(inja::Environment& env);
39
41inja::Template makeCppBaseHeaderFileTemplate(inja::Environment& env);
42
44inja::Template makeCppImplFileTemplate(inja::Environment& env);
45
46} // namespace sen::gen::detail
47
48#endif // SEN_LIBS_GEN_SRC_CPP_CPP_TEMPLATES_H
Definition type_storage.h:28
inja::Template sequenceType
Definition cpp_templates.h:24
inja::Template aliasType
Definition cpp_templates.h:25
inja::Template structType
Definition cpp_templates.h:21
inja::Template makeCppPackageExportTemplate(inja::Environment &env)
The template for generating stl package exports.
inja::Template quantityType
Definition cpp_templates.h:27
inja::Template makeCppImplFileTemplate(inja::Environment &env)
Returns the template of the Implementation File.
CppTemplateSet makeCppImplTemplates(inja::Environment &env) noexcept
Templates for the implementation source file.
CppTemplateSet makeCppBaseHeaderTemplates(inja::Environment &env) noexcept
Templates for the type header.
inja::Template makeCppBaseHeaderFileTemplate(inja::Environment &env)
Returns the template of the Base Header File.
inja::Template enumType
Definition cpp_templates.h:22
inja::Template classType
Definition cpp_templates.h:28
inja::Template variantType
Definition cpp_templates.h:23
inja::Template optionalType
Definition cpp_templates.h:26
A template for each supported user type.
Definition cpp_templates.h:20