Computer Assited Medical Intervention Tool Kit  version 5.0
ActionExtensionGenerator Class Reference

Generate an action extension. More...

#include <ActionExtensionGenerator.h>

+ Inheritance diagram for ActionExtensionGenerator:
+ Collaboration diagram for ActionExtensionGenerator:

Public Member Functions

 ActionExtensionGenerator (cepcoreschema::ActionExtension &domActionExtension, QString actionExtensionsDirectory, QString licence="")
 
 ActionExtensionGenerator (QString xmlFileName, QString actionExtensionsDirectory, QString licence="")
 
 ~ActionExtensionGenerator ()
 
- 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::ActionExtension &dom)
 Helper method for constructors. More...
 

Private Attributes

QVector< ActionGenerator * > actions
 

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 an action extension.

Constructor & Destructor Documentation

◆ ActionExtensionGenerator() [1/2]

ActionExtensionGenerator::ActionExtensionGenerator ( QString  xmlFileName,
QString  actionExtensionsDirectory,
QString  licence = "" 
)

References createFromDom().

+ Here is the call graph for this function:

◆ ActionExtensionGenerator() [2/2]

ActionExtensionGenerator::ActionExtensionGenerator ( cepcoreschema::ActionExtension &  domActionExtension,
QString  actionExtensionsDirectory,
QString  licence = "" 
)

◆ ~ActionExtensionGenerator()

ActionExtensionGenerator::~ActionExtensionGenerator ( )

Member Function Documentation

◆ createFromDom()

void ActionExtensionGenerator::createFromDom ( cepcoreschema::ActionExtension &  dom)
private

Helper method for constructors.

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

Referenced by ActionExtensionGenerator().

+ Here is the caller graph for this function:

◆ generateExtensionClass()

void ActionExtensionGenerator::generateExtensionClass ( QString  directory)
overrideprotectedvirtual

Helpers methods.

Implements ExtensionGenerator.

References actions.

◆ generateTestDataFiles()

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

Implements ExtensionGenerator.

◆ writeCFile()

void ActionExtensionGenerator::writeCFile ( QString  directory)
overrideprotectedvirtual

Implements ExtensionGenerator.

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

+ Here is the call graph for this function:

◆ writeHFile()

void ActionExtensionGenerator::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

◆ actions

QVector<ActionGenerator*> ActionExtensionGenerator::actions
private

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