Sen API
Sen Libraries
Loading...
Searching...
No Matches
python.h
Go to the documentation of this file.
1// === python.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_PYTHON_H
9#define SEN_LIBS_GEN_INCLUDE_SEN_GEN_PYTHON_H
10
13
14#include <memory>
15#include <string>
16
17namespace sen::gen
18{
19
23{
24 SEN_NOCOPY_NOMOVE(PythonGenerator)
25
26public:
29
32 [[nodiscard]] std::string generateModule(const sen::lang::TypeSet& typeSet);
33
36 static void replaceInvalidCharacters(std::string& str);
37
38private:
39 class Impl;
40 std::unique_ptr<Impl> pimpl_;
41};
42
43} // namespace sen::gen
44
45#endif // SEN_LIBS_GEN_INCLUDE_SEN_GEN_PYTHON_H
static void replaceInvalidCharacters(std::string &str)
Sanitises a string so it is a valid Python identifier fragment by replacing the characters Python for...
std::string generateModule(const sen::lang::TypeSet &typeSet)
Renders one Python module for the supplied type set. Imports are derived from the type set's imported...
A set of types coming from a STL file.
Definition stl_resolver.h:33
Definition cpp.h:21