Generate an viewer extension. More...
#include <ViewerExtensionGenerator.h>
Public Member Functions | |
ViewerExtensionGenerator (cepcoreschema::ViewerExtension &domViewerExtension, QString viewerExtensionsDirectory, QString licence="") | |
ViewerExtensionGenerator (QString xmlFileName, QString viewerExtensionsDirectory, QString licence="") | |
~ViewerExtensionGenerator () | |
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::ViewerExtension &dom) |
Helper method for constructors. More... | |
Private Attributes | |
QStringList | namedViewers |
bool | registerDefaultViewer |
ViewerGenerator * | viewerGenerator |
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 an viewer extension.
ViewerExtensionGenerator::ViewerExtensionGenerator | ( | QString | xmlFileName, |
QString | viewerExtensionsDirectory, | ||
QString | licence = "" |
||
) |
ViewerExtensionGenerator::ViewerExtensionGenerator | ( | cepcoreschema::ViewerExtension & | domViewerExtension, |
QString | viewerExtensionsDirectory, | ||
QString | licence = "" |
||
) |
ViewerExtensionGenerator::~ViewerExtensionGenerator | ( | ) |
|
private |
Helper method for constructors.
References ExtensionGenerator::dependencyGenerators, ExtensionGenerator::description, ExtensionGenerator::licence, ExtensionGenerator::name, namedViewers, registerDefaultViewer, and viewerGenerator.
Referenced by ViewerExtensionGenerator().
|
overrideprotectedvirtual |
Helpers methods.
Implements ExtensionGenerator.
References ViewerGenerator::generateFiles(), and viewerGenerator.
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
References ViewerGenerator::getClassName(), ClassNameHandler::getClassName(), ExtensionGenerator::licence, ExtensionGenerator::name, namedViewers, registerDefaultViewer, registerNewViewer, and viewerGenerator.
|
overrideprotectedvirtual |
Implements ExtensionGenerator.
References ExtensionGenerator::description, ClassNameHandler::getClassName(), ExtensionGenerator::licence, and ExtensionGenerator::name.
|
private |
Referenced by createFromDom(), and writeCFile().
|
private |
Referenced by createFromDom(), and writeCFile().
|
private |
Referenced by createFromDom(), generateExtensionClass(), and writeCFile().