Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
ComponentExtensionGenerator Class Reference

Generate a component extension. More...

#include <ComponentExtensionGenerator.h>

Inherits ExtensionGenerator.

Public Member Functions

 ComponentExtensionGenerator (QString xmlFileName, QString componentExtensionsDirectory, QString licence="")
 
 ComponentExtensionGenerator (cepcoreschema::ComponentExtension &domComponentExtension, QString componentExtensionsDirectory, QString licence="")
 
 ~ComponentExtensionGenerator ()
 
- Public Member Functions inherited from ExtensionGenerator
 ExtensionGenerator (QString actionExtensionsDirectory, QString licence="", QString extensionType="NONE")
 
virtual void generateExtension ()
 
 ~ExtensionGenerator ()
 

Protected Member Functions

void generateActionOrComponent (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
virtual 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 = "" 
)

◆ 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

◆ findComponentClass()

QString ComponentExtensionGenerator::findComponentClass ( QString  suffix)
private

References components.

Referenced by generateTestDataFiles(), and writeCFile().

◆ generateActionOrComponent()

void ComponentExtensionGenerator::generateActionOrComponent ( QString  directory)
overrideprotectedvirtual

Helpers methods.

Implements ExtensionGenerator.

References components.

◆ generateTestDataFiles()

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

Implements ExtensionGenerator.

References components, and findComponentClass().

◆ writeCFile()

void ComponentExtensionGenerator::writeCFile ( QString  directory)
overrideprotectedvirtual

◆ writeHFile()

void ComponentExtensionGenerator::writeHFile ( QString  directory)
overrideprotectedvirtual

Member Data Documentation

◆ components

QVector<ComponentGenerator*> ComponentExtensionGenerator::components
private

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