Generate a component extension. More...
#include <ComponentExtensionGenerator.h>
Public Member Functions | |
ComponentExtensionGenerator (cepcoreschema::ComponentExtension &domComponentExtension, QString componentExtensionsDirectory, QString licence="") | |
ComponentExtensionGenerator (QString xmlFileName, QString componentExtensionsDirectory, QString licence="") | |
~ComponentExtensionGenerator () | |
Public Member Functions inherited from ExtensionGenerator | |
ExtensionGenerator (QString actionExtensionsDirectory, QString licence="", QString extensionType="NONE") | |
virtual void | generateExtension () |
virtual | ~ExtensionGenerator () |
Protected Member Functions | |
void | generateExtensionClass (QString directory) override |
Helpers methods. More... | |
void | writeCFile (QString directory) override |
void | writeHFile (QString directory) override |
void | generateTestDataFiles (QString directory, QString testDataDirName) override |
Protected Member Functions inherited from ExtensionGenerator | |
void | setExtensionsDirectory (QString extensionsDirectory) |
virtual void | generateExtensionCMakeLists (QString directory) |
Helpers methods. More... | |
Private Member Functions | |
void | createFromDom (cepcoreschema::ComponentExtension &dom) |
Helper method for constructors. More... | |
QString | findComponentClass (QString suffix) |
Private Attributes | |
QVector< ComponentGenerator * > | components |
Additional Inherited Members | |
Protected Attributes inherited from ExtensionGenerator | |
QVector< DependencyGenerator * > | dependencyGenerators |
QString | description |
QString | extensionsDirectory |
Absolute path to the extensions directory. More... | |
QString | extensionType |
Extension type: Action or Component extension. More... | |
QString | licence |
QString | name |
Name of the extension. More... | |
Generate a component extension.
ComponentExtensionGenerator::ComponentExtensionGenerator | ( | QString | xmlFileName, |
QString | componentExtensionsDirectory, | ||
QString | licence = "" |
||
) |
ComponentExtensionGenerator::ComponentExtensionGenerator | ( | cepcoreschema::ComponentExtension & | domComponentExtension, |
QString | componentExtensionsDirectory, | ||
QString | licence = "" |
||
) |
ComponentExtensionGenerator::~ComponentExtensionGenerator | ( | ) |
|
private |
Helper method for constructors.
References components, ExtensionGenerator::dependencyGenerators, ExtensionGenerator::description, ExtensionGenerator::licence, and ExtensionGenerator::name.
Referenced by ComponentExtensionGenerator().
|
private |
References components.
Referenced by generateTestDataFiles(), and writeCFile().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
References components, findComponentClass(), and testDataDirName.
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
References components, findComponentClass(), ClassNameHandler::getClassName(), ExtensionGenerator::licence, and ExtensionGenerator::name.
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
References ExtensionGenerator::description, ClassNameHandler::getClassName(), ExtensionGenerator::licence, and ExtensionGenerator::name.
|
private |
Referenced by createFromDom(), findComponentClass(), generateExtensionClass(), generateTestDataFiles(), and writeCFile().