#include <waresdev/WareSrcFactory.hpp>
|
| WareSrcFactory (openfluid::ware::WareType Type) |
|
| ~WareSrcFactory () |
|
void | setWareId (const QString &Id) |
|
bool | createCMakeListsFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
bool | createJsonFile (QString &NewFilePath, QString &ErrMsg) |
|
bool | createCppFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
bool | createHppFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
bool | createParamUiCppFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
bool | createParamUiHppFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
bool | createCmakeConfigFile (const Replacements &R, QString &NewFilePath, QString &ErrMsg) |
|
◆ WareSrcFactory()
◆ ~WareSrcFactory()
openfluid::waresdev::WareSrcFactory::~WareSrcFactory |
( |
| ) |
|
◆ createCmakeConfigFile()
bool openfluid::waresdev::WareSrcFactory::createCmakeConfigFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a Cmake.in.config file in the ware directory, from the Cmake.in.config file template of the ware type.
- Parameters
-
R | Replacements struct containing the replacements to perform |
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createCMakeListsFile()
bool openfluid::waresdev::WareSrcFactory::createCMakeListsFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a CMakeLists file in the ware directory, from the CMakeLists file template of the ware type.
- Parameters
-
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createCppFile()
bool openfluid::waresdev::WareSrcFactory::createCppFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a main cpp file in the ware directory, from the source file template of the ware type, depending on the builder extension type (set to TYPE_UNKNOWN means it is not a Builder extension).
- Parameters
-
R | Replacements struct containing the replacements to perform |
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createHppFile()
bool openfluid::waresdev::WareSrcFactory::createHppFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a main hpp file in the ware directory, from the header file template of the ware type depending on the builder extension type (set to TYPE_UNKNOWN means it is not a Builder extension).
- Parameters
-
R | Replacements struct containing the replacements to perform |
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createJsonFile()
bool openfluid::waresdev::WareSrcFactory::createJsonFile |
( |
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a wareshub.json file in the ware directory, from the (shared) Json file template.
- Parameters
-
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createParamUiCppFile()
bool openfluid::waresdev::WareSrcFactory::createParamUiCppFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a ui-parameterization cpp file in the ware directory, from the ui-parameterization source file template of the ware type.
- Parameters
-
R | Replacements struct containing the replacements to perform |
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ createParamUiHppFile()
bool openfluid::waresdev::WareSrcFactory::createParamUiHppFile |
( |
const Replacements & |
R, |
|
|
QString & |
NewFilePath, |
|
|
QString & |
ErrMsg |
|
) |
| |
Creates a ui-parameterization hpp file in the ware directory, from the ui-parameterization header file template of the ware type.
- Parameters
-
R | Replacements struct containing the replacements to perform |
NewFilePath | A QString that will be filled with the absolute path of the created file |
ErrMsg | A QString that will be filled with error messages if the file creation fails |
- Returns
- bool False if the file creation fails, true otherwise
◆ getClassnameRegExp()
static QRegExp openfluid::waresdev::WareSrcFactory::getClassnameRegExp |
( |
QString & |
Tooltip | ) |
|
|
static |
◆ getCppFilenameRegExp()
static QRegExp openfluid::waresdev::WareSrcFactory::getCppFilenameRegExp |
( |
QString & |
Tooltip, |
|
|
bool |
IsHpp = false |
|
) |
| |
|
static |
◆ getHeaderGuard()
static QString openfluid::waresdev::WareSrcFactory::getHeaderGuard |
( |
const QString & |
HppFilename | ) |
|
|
static |
◆ getHppFilename()
static QString openfluid::waresdev::WareSrcFactory::getHppFilename |
( |
const QString & |
CppFilename | ) |
|
|
static |
◆ getSimulatorInitCode()
◆ getSimulatorRunCode()
◆ getSimulatorSchedulingReturn()
◆ getSimulatorSignatureData()
◆ getSimulatorSignatureInfos()
◆ getWareIdRegExp()
static QRegExp openfluid::waresdev::WareSrcFactory::getWareIdRegExp |
( |
QString & |
Tooltip | ) |
|
|
static |
◆ setWareId()
void openfluid::waresdev::WareSrcFactory::setWareId |
( |
const QString & |
Id | ) |
|
The documentation for this class was generated from the following file: