![]() |
|
PhoenixGenerator
2.2.0
Set of tools to generate code
|
#include <set>#include "header_generator.h"#include "nanobind_generator.h"#include "phoenix_color.h"#include "openFileStream.h"
Include dependency graph for nanobind_generator.cpp:Go to the source code of this file.
Functions | |
| bool | generator_nanobind_class (const PNanobindTraitBackendManager &manager, PPath &baseFileName, const PPath &sourceFile, const PPath &headerFile, const PVecPath &extraInclude, const PVecClassConfig &vecClassConfig, const GeneratorMode &mode) |
| Generate nanobind wrapper class. | |
| bool | generator_nanobind_full (const PNanobindTraitBackendManager &manager, const ProjectParam &projectParam) |
| Generate the full sources and related unit tests from configuration. | |
| bool | generator_nanobind_test (const PNanobindTraitBackendManager &manager, const PPath &outputTestDir, const std::vector< PClassConfig > &vecClassConfig, const PString &projectName, const PPath &baseFileName, const GeneratorMode &mode) |
| bool generator_nanobind_class | ( | const PNanobindTraitBackendManager & | manager, |
| PPath & | baseFileName, | ||
| const PPath & | sourceFile, | ||
| const PPath & | headerFile, | ||
| const PVecPath & | extraInclude, | ||
| const PVecClassConfig & | vecClassConfig, | ||
| const GeneratorMode & | mode ) |
Generate nanobind wrapper class.
| manager | : PTraitBackendManager which handles all trait backend |
| baseFileName | : base file name to be used (without path and extension) |
| sourceFile | : source file to be saved |
| headerFile | : header to be used with this source file |
| extraInclude | : extra include to be added in the source file |
| vecClassConfig | : vector of configuration of the classes to be used |
| mode | : mode of the generator |
Definition at line 23 of file nanobind_generator.cpp.
References PNanobindTraitBackendManager::headerExtraInclude(), licenceSave(), PNanobindTraitBackendManager::registerConstructor(), PNanobindTraitBackendManager::registerMethod(), PNanobindTraitBackendManager::registerProperty(), and PNanobindTraitBackendManager::registerStaticMethod().
Referenced by generator_nanobind_full().
Here is the call graph for this function:
Here is the caller graph for this function:| bool generator_nanobind_full | ( | const PNanobindTraitBackendManager & | manager, |
| const ProjectParam & | projectParam ) |
Generate the full sources and related unit tests from configuration.
| manager | : PTraitBackendManager which handles all trait backend |
| projectParam | : description of classes and how and where to generate sources and test |
Definition at line 83 of file nanobind_generator.cpp.
References generator_nanobind_class(), generator_nanobind_test(), ProjectParam::mode, ProjectParam::name, ProjectParam::outputSourceDir, ProjectParam::outputTestDir, and ProjectParam::vecDataConfig.
Referenced by generateNanobindClassesFull().
Here is the call graph for this function:
Here is the caller graph for this function:| bool generator_nanobind_test | ( | const PNanobindTraitBackendManager & | manager, |
| const PPath & | outputTestDir, | ||
| const std::vector< PClassConfig > & | vecClassConfig, | ||
| const PString & | projectName, | ||
| const PPath & | baseFileName, | ||
| const GeneratorMode & | mode ) |
Definition at line 61 of file nanobind_generator.cpp.
References PNanobindTraitBackendManager::headerTestInclude(), and PNanobindTraitBackendManager::testFunction().
Referenced by generator_nanobind_full().
Here is the call graph for this function:
Here is the caller graph for this function: