![]() |
PhoenixGenerator
2.0.0
Set of tools to generate code
|
#include "parser_toml.h"
#include "cmakelist_generator.h"
#include "gitlab_doc.h"
#include "wrapper_generator.h"
#include "project_generator.h"
Go to the source code of this file.
Functions | |
bool | project_generator (const PPath &descriptionFile, const PPath &configFile, bool isPythonWrapper) |
Generate a full project with PhoenixDataStream and PhoenixTypeStream. More... | |
bool | project_generator_cmakeListsMain (const PPath &fileName, const ProjectConfig &projectConfig, const PString &baseConfigClassName) |
Create the main CMakeLists.txt of the project directory. More... | |
bool | project_generator_cmakeListsSrc (const PPath &fileName, const PString &projectName, const PString &libName) |
Create the CMakeLists.txt of the src directory. More... | |
bool | project_generator_cmakeListsTest (const PPath &fileName, const PString &baseConfigClassName) |
Create the main CMakeLists.txt of the project directory. More... | |
bool | project_generator_gitignore (const PPath &fileName) |
Create the .gitignore of the project. More... | |
bool | project_generator_gitlabci (const PPath &fileName, const ProjectConfig &projectConfig) |
Create the .gitlab-ci.yml of the project. More... | |
bool | project_generator_loadConfig (ProjectConfig &config, const PPath &descriptionFile) |
Load the project configuration. More... | |
bool | project_generator_readme (const PPath &fileName, const ProjectConfig &projectConfig) |
Create the readme of the project directory. More... | |
bool project_generator | ( | const PPath & | descriptionFile, |
const PPath & | configFile, | ||
bool | isPythonWrapper | ||
) |
Generate a full project with PhoenixDataStream and PhoenixTypeStream.
descriptionFile | : description of the full project |
configFile | : configuration file of the |
isPythonWrapper | : true if we want to generate a Python wrapper |
Definition at line 292 of file project_generator.cpp.
References PPath::createDirectory(), PPath::eraseExtension(), PPath::getFileName(), ProjectConfig::name, project_generator_cmakeListsMain(), project_generator_cmakeListsSrc(), project_generator_cmakeListsTest(), project_generator_gitignore(), project_generator_gitlabci(), project_generator_loadConfig(), project_generator_readme(), project_wrapper_generator(), saveParserClassConfig(), and PString::toLower().
bool project_generator_cmakeListsMain | ( | const PPath & | fileName, |
const ProjectConfig & | projectConfig, | ||
const PString & | baseConfigClassName | ||
) |
Create the main CMakeLists.txt of the project directory.
fileName | : name of the file to be created |
projectConfig | : config of the project |
baseConfigClassName | : base name of the config class file |
Definition at line 82 of file project_generator.cpp.
References ProjectConfig::description, getCMakeListsHeader(), ProjectConfig::name, PPath::saveFileContent(), PString::toLower(), ProjectConfig::url, and ProjectConfig::version.
Referenced by project_generator().
bool project_generator_cmakeListsSrc | ( | const PPath & | fileName, |
const PString & | projectName, | ||
const PString & | libName | ||
) |
Create the CMakeLists.txt of the src directory.
fileName | : name of the file to be created |
projectName | : name of hte project |
libName | : name of the library to be created |
Definition at line 45 of file project_generator.cpp.
References getCMakeListsHeader(), and PPath::saveFileContent().
Referenced by project_generator().
bool project_generator_cmakeListsTest | ( | const PPath & | fileName, |
const PString & | baseConfigClassName | ||
) |
Create the main CMakeLists.txt of the project directory.
fileName | : name of the file to be created |
baseConfigClassName | : base name of the config class file |
Definition at line 67 of file project_generator.cpp.
References getCMakeListsHeader(), PPath::saveFileContent(), and PString::toUpper().
Referenced by project_generator().
bool project_generator_gitignore | ( | const PPath & | fileName | ) |
Create the .gitignore of the project.
fileName | : name of the file to be created |
Definition at line 159 of file project_generator.cpp.
References PPath::saveFileContent().
Referenced by project_generator().
bool project_generator_gitlabci | ( | const PPath & | fileName, |
const ProjectConfig & | projectConfig | ||
) |
Create the .gitlab-ci.yml of the project.
fileName | : name of the file to be created |
projectConfig | : config of the project |
Definition at line 175 of file project_generator.cpp.
References getCMakeListsHeader(), ProjectConfig::name, ProjectConfig::runnerTag, PPath::saveFileContent(), and PString::toLower().
Referenced by project_generator().
bool project_generator_loadConfig | ( | ProjectConfig & | config, |
const PPath & | descriptionFile | ||
) |
Load the project configuration.
[out] | config | : loaded project configuration |
descriptionFile | : description of the full project |
Definition at line 18 of file project_generator.cpp.
References ProjectConfig::description, DicoValue::getMap(), ProjectConfig::mainBranch, ProjectConfig::name, parser_toml(), phoenix_get_string(), ProjectConfig::runnerTag, ProjectConfig::url, and ProjectConfig::version.
Referenced by project_generator().
bool project_generator_readme | ( | const PPath & | fileName, |
const ProjectConfig & | projectConfig | ||
) |
Create the readme of the project directory.
fileName | : name of the file to be created |
projectConfig | : config of the project |
Definition at line 115 of file project_generator.cpp.
References ProjectConfig::description, getGitlabDocUrl(), ProjectConfig::mainBranch, ProjectConfig::name, PPath::saveFileContent(), ProjectConfig::url, and ProjectConfig::version.
Referenced by project_generator().