Computer Assited Medical Intervention Tool Kit  version 4.1
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
ExtensionGenerator Class Referenceabstract

Common abstract class to generate extensions. More...

#include <ExtensionGenerator.h>

Inherited by ActionExtensionGenerator, ComponentExtensionGenerator, and LibraryGenerator.

Public Member Functions

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

Protected Member Functions

virtual void setExtensionsDirectory (QString extensionsDirectory)
 
virtual void generateExtensionCMakeLists (QString directory)
 Helpers methods. More...
 
virtual void generateActionOrComponent (QString directory)=0
 
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 ( )

Member Function Documentation

◆ generateActionOrComponent()

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

◆ generateExtension()

void ExtensionGenerator::generateExtension ( )
virtual

References testDataDirName.

◆ generateExtensionCMakeLists()

void ExtensionGenerator::generateExtensionCMakeLists ( QString  directory)
protectedvirtual

◆ generateTestDataFiles()

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

◆ setExtensionsDirectory()

void ExtensionGenerator::setExtensionsDirectory ( QString  extensionsDirectory)
protectedvirtual

◆ 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

QString ExtensionGenerator::description
protected

◆ extensionsDirectory

QString ExtensionGenerator::extensionsDirectory
protected

Absolute path to the extensions directory.

◆ extensionType

QString ExtensionGenerator::extensionType
protected

Extension type: Action or Component extension.

◆ licence

QString ExtensionGenerator::licence
protected

◆ name

QString ExtensionGenerator::name
protected

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