![]() |
|
PhoenixGenerator
2.0.4
Set of tools to generate code
|
#include "ProjectParam.h"
Include dependency graph for generator_class_cpp.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| PString | class_getClassDefTemplate (const PVecString &listTemplate) |
| Get the template call in the class declaration. | |
| bool | generator_class_cpp (const PTraitBackendManager &manager, const std::vector< PClassConfig > &vecClassConfig, const PPath &outputSourceDir, const PPath &baseFileName, const GeneratorMode &mode, const PVecPath &vecInclude) |
| Creates header and source files. | |
| void | generator_class_cpp_header (const PTraitBackendManager &manager, std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) |
| Create the declaration of the given class. | |
| void | generator_class_cpp_source (const PTraitBackendManager &manager, std::ofstream &fs, const PClassConfig &classConfig, const GeneratorMode &mode) |
| Create the implementation of the given class. | |
| bool | generator_class_full (const PTraitBackendManager &manager, const ProjectParam &projectParam) |
| Generate the full sources and related unit tests from configuration. | |
| PString class_getClassDefTemplate | ( | const PVecString & | listTemplate | ) |
Get the template call in the class declaration.
| listTemplate | : list of template def |
Definition at line 26 of file generator_class_cpp.cpp.
Referenced by generator_class_cpp_header(), and generator_class_cpp_source().
Here is the caller graph for this function:| bool generator_class_cpp | ( | const PTraitBackendManager & | manager, |
| const std::vector< PClassConfig > & | vecClassConfig, | ||
| const PPath & | outputSourceDir, | ||
| const PPath & | baseFileName, | ||
| const GeneratorMode & | mode, | ||
| const PVecPath & | vecInclude ) |
Creates header and source files.
| manager | : PTraitBackendManager which handles all trait backend |
| vecClassConfig | : vector of class config we want to save |
| baseFileName | : base file name for header or source file |
| outputSourceDir | : output directory where to save sources |
| mode | : all modes of the generator (data/check/type/config stream) |
Definition at line 361 of file generator_class_cpp.cpp.
References class_checkClassConfig(), generator_class_cpp_headerFile(), and generator_class_cpp_sourceFile().
Referenced by generator_class_full().
Here is the call graph for this function:
Here is the caller graph for this function:| void generator_class_cpp_header | ( | const PTraitBackendManager & | manager, |
| std::ofstream & | fs, | ||
| const PClassConfig & | classConfig, | ||
| const GeneratorMode & | mode ) |
Create the declaration of the given class.
| manager | : PTraitBackendManager which handles all trait backend | |
| [out] | fs | : file to be completed |
| classConfig | : configuration of the class to be used | |
| mode | : mode of the generator |
Definition at line 186 of file generator_class_cpp.cpp.
References class_getClassDeclTempalteDef(), class_getClassDefTemplate(), PTraitBackendManager::classExtraFunctionDeclaration(), GeneratorMode::defTemplate, PClassConfig::getClassDocumentation(), PClassConfig::getListAttribute(), PClassConfig::getListParentClass(), PClassConfig::getListTemplate(), PClassConfig::getName(), PTraitBackendManager::privateMethodDeclaration(), PTraitBackendManager::protectedMethodDeclaration(), PTraitBackendManager::publicMethodDeclaration(), and GeneratorMode::templateDeclaration.
Referenced by generator_class_cpp_headerFile().
Here is the call graph for this function:
Here is the caller graph for this function:| void generator_class_cpp_source | ( | const PTraitBackendManager & | manager, |
| std::ofstream & | fs, | ||
| const PClassConfig & | classConfig, | ||
| const GeneratorMode & | mode ) |
Create the implementation of the given class.
| manager | : PTraitBackendManager which handles all trait backend | |
| [out] | fs | : file to be completed |
| classConfig | : configuration of the class to be used | |
| mode | : mode of the generator |
Definition at line 283 of file generator_class_cpp.cpp.
References class_getClassDeclTempalteDef(), class_getClassDefTemplate(), class_saveClassConstructorImpl(), class_saveClassDestructorImpl(), class_saveClassInitialisationFunctionImpl(), PTraitBackendManager::classExtraFunctionImplementation(), GeneratorMode::defTemplate, PClassConfig::getIsEnum(), PClassConfig::getListTemplate(), PTraitBackendManager::privateMethodImplementation(), PTraitBackendManager::protectedMethodImplementation(), PTraitBackendManager::publicMethodImplementation(), and GeneratorMode::templateDeclaration.
Referenced by generator_class_cpp_sourceFile().
Here is the call graph for this function:
Here is the caller graph for this function:| bool generator_class_full | ( | const PTraitBackendManager & | 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 491 of file generator_class_cpp.cpp.
References generator_class_cpp(), generator_class_cpp_test(), getCMakeListsHeader(), ProjectParam::mode, ProjectParam::name, ProjectParam::outputSourceDir, ProjectParam::outputTestDir, and ProjectParam::vecDataConfig.
Referenced by simple_project_generate_source().
Here is the call graph for this function:
Here is the caller graph for this function: