Computer Assisted Medical Intervention Tool Kit  version 5.2
ExtensionGenerator Class Referenceabstract

Common abstract class to generate extensions. More...

#include <ExtensionGenerator.h>

+ Inheritance diagram for ExtensionGenerator:
+ Collaboration diagram for ExtensionGenerator:

Public Member Functions

 ExtensionGenerator (QString actionExtensionsDirectory, QString licence="", QString extensionType="NONE")
 
virtual void generateExtension ()
 
virtual ~ExtensionGenerator ()
 

Protected Member Functions

void setExtensionsDirectory (QString extensionsDirectory)
 
virtual void generateExtensionCMakeLists (QString directory)
 Helpers methods. More...
 
virtual void generateExtensionClass (QString directory)=0
 generate an action, a component of a viewer More...
 
virtual void writeCFile (QString directory)=0
 
virtual void writeHFile (QString directory)=0
 
virtual void generateTestDataFiles (QString directory, QString testDataDirName)=0
 

Protected Attributes

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

Common abstract class to generate extensions.

Note
This class is abstract and thus cannot be instantiated.

Constructor & Destructor Documentation

◆ ExtensionGenerator()

ExtensionGenerator::ExtensionGenerator ( QString  actionExtensionsDirectory,
QString  licence = "",
QString  extensionType = "NONE" 
)

◆ ~ExtensionGenerator()

ExtensionGenerator::~ExtensionGenerator ( )
virtual

Member Function Documentation

◆ generateExtension()

void ExtensionGenerator::generateExtension ( )
virtual

References testDataDirName.

◆ generateExtensionClass()

virtual void ExtensionGenerator::generateExtensionClass ( QString  directory)
protectedpure virtual

generate an action, a component of a viewer

Implemented in ViewerExtensionGenerator, LibraryGenerator, ComponentExtensionGenerator, and ActionExtensionGenerator.

◆ generateExtensionCMakeLists()

void ExtensionGenerator::generateExtensionCMakeLists ( QString  directory)
protectedvirtual

Helpers methods.

Reimplemented in LibraryGenerator.

References description, DependencyGenerator::getCepLibsString(), DependencyGenerator::getExternalLibsString(), DependencyGenerator::getNeededActionsString(), DependencyGenerator::getNeededComponentsString(), and DependencyGenerator::getNeededViewersString().

+ Here is the call graph for this function:

◆ generateTestDataFiles()

virtual void ExtensionGenerator::generateTestDataFiles ( QString  directory,
QString  testDataDirName 
)
protectedpure virtual

◆ setExtensionsDirectory()

void ExtensionGenerator::setExtensionsDirectory ( QString  extensionsDirectory)
protected

◆ writeCFile()

virtual void ExtensionGenerator::writeCFile ( QString  directory)
protectedpure virtual

◆ writeHFile()

virtual void ExtensionGenerator::writeHFile ( QString  directory)
protectedpure virtual

Member Data Documentation

◆ dependencyGenerators

QVector<DependencyGenerator* > ExtensionGenerator::dependencyGenerators
protected

◆ description

◆ extensionsDirectory

QString ExtensionGenerator::extensionsDirectory
protected

Absolute path to the extensions directory.

◆ extensionType

QString ExtensionGenerator::extensionType
protected

Extension type: Action or Component extension.

◆ licence

◆ name


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