Computer Assited Medical Intervention Tool Kit  version 5.0
ComponentExtensionGenerator Class Reference

Generate a component extension. More...

#include <ComponentExtensionGenerator.h>

+ Inheritance diagram for ComponentExtensionGenerator:
+ Collaboration diagram for ComponentExtensionGenerator:

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...
 

Detailed Description

Generate a component extension.

Constructor & Destructor Documentation

◆ ComponentExtensionGenerator() [1/2]

ComponentExtensionGenerator::ComponentExtensionGenerator ( QString  xmlFileName,
QString  componentExtensionsDirectory,
QString  licence = "" 
)

References createFromDom().

+ Here is the call graph for this function:

◆ ComponentExtensionGenerator() [2/2]

ComponentExtensionGenerator::ComponentExtensionGenerator ( cepcoreschema::ComponentExtension &  domComponentExtension,
QString  componentExtensionsDirectory,
QString  licence = "" 
)

◆ ~ComponentExtensionGenerator()

ComponentExtensionGenerator::~ComponentExtensionGenerator ( )

Member Function Documentation

◆ createFromDom()

void ComponentExtensionGenerator::createFromDom ( cepcoreschema::ComponentExtension &  dom)
private

Helper method for constructors.

References components, ExtensionGenerator::dependencyGenerators, ExtensionGenerator::description, ExtensionGenerator::licence, and ExtensionGenerator::name.

Referenced by ComponentExtensionGenerator().

+ Here is the caller graph for this function:

◆ findComponentClass()

QString ComponentExtensionGenerator::findComponentClass ( QString  suffix)
private

References components.

Referenced by generateTestDataFiles(), and writeCFile().

+ Here is the caller graph for this function:

◆ generateExtensionClass()

void ComponentExtensionGenerator::generateExtensionClass ( QString  directory)
overrideprotectedvirtual

Helpers methods.

Implements ExtensionGenerator.

References components.

◆ generateTestDataFiles()

void ComponentExtensionGenerator::generateTestDataFiles ( QString  directory,
QString  testDataDirName 
)
overrideprotectedvirtual

Implements ExtensionGenerator.

References components, findComponentClass(), and testDataDirName.

+ Here is the call graph for this function:

◆ writeCFile()

void ComponentExtensionGenerator::writeCFile ( QString  directory)
overrideprotectedvirtual

Implements ExtensionGenerator.

References components, findComponentClass(), ClassNameHandler::getClassName(), ExtensionGenerator::licence, and ExtensionGenerator::name.

+ Here is the call graph for this function:

◆ writeHFile()

void ComponentExtensionGenerator::writeHFile ( QString  directory)
overrideprotectedvirtual

Implements ExtensionGenerator.

References ExtensionGenerator::description, ClassNameHandler::getClassName(), ExtensionGenerator::licence, and ExtensionGenerator::name.

+ Here is the call graph for this function:

Member Data Documentation

◆ components

QVector<ComponentGenerator*> ComponentExtensionGenerator::components
private

The documentation for this class was generated from the following files: