Computer Assited Medical Intervention Tool Kit  version 5.0
ActionGenerator Class Reference

Generate an action. More...

#include <ActionGenerator.h>

+ Collaboration diagram for ActionGenerator:

Public Types

enum  ActionProperty { modal, embeded, delayed }
 

Public Member Functions

 ActionGenerator (cepcoreschema::Action &domAction, QString licence)
 
 ActionGenerator (QString xmlFileName, QString licence)
 
void generateFiles (QString directoryName)
 
QString getClassName () const
 
 ~ActionGenerator ()=default
 

Private Member Functions

void createFromDom (cepcoreschema::Action &dom)
 Helper methods for constructors. More...
 
QString getComponentNamespace ()
 Check if this action's component is in CamiTK namespace. More...
 
void writeCFile (QString directoryName)
 
void writeHFile (QString directoryName)
 
void writeSpecialItkFile (QString directoryName)
 

Private Attributes

QVector< ParameterGenerator * > actionParameters
 
QString className
 
QString componentName
 
QString description
 
QString family
 
bool isItkFilter
 
QString itkFilterOutputType
 
QString licence
 
QString name
 Name of the action. More...
 
QStringList tags
 

Detailed Description

Generate an action.

Member Enumeration Documentation

◆ ActionProperty

Enumerator
modal 
embeded 
delayed 

Constructor & Destructor Documentation

◆ ActionGenerator() [1/2]

ActionGenerator::ActionGenerator ( QString  xmlFileName,
QString  licence 
)

◆ ActionGenerator() [2/2]

ActionGenerator::ActionGenerator ( cepcoreschema::Action &  domAction,
QString  licence 
)

◆ ~ActionGenerator()

ActionGenerator::~ActionGenerator ( )
default

Member Function Documentation

◆ createFromDom()

void ActionGenerator::createFromDom ( cepcoreschema::Action &  dom)
private

Helper methods for constructors.

References description, and ClassNameHandler::getClassName().

+ Here is the call graph for this function:

◆ generateFiles()

void ActionGenerator::generateFiles ( QString  directoryName)

◆ getClassName()

QString ActionGenerator::getClassName ( ) const

◆ getComponentNamespace()

QString ActionGenerator::getComponentNamespace ( )
private

Check if this action's component is in CamiTK namespace.

Returns
"camitk::" if the component is declared in the CamiTK namespace or "" otherwise

◆ writeCFile()

void ActionGenerator::writeCFile ( QString  directoryName)
private

References description.

◆ writeHFile()

void ActionGenerator::writeHFile ( QString  directoryName)
private

◆ writeSpecialItkFile()

void ActionGenerator::writeSpecialItkFile ( QString  directoryName)
private

Member Data Documentation

◆ actionParameters

QVector<ParameterGenerator*> ActionGenerator::actionParameters
private

◆ className

QString ActionGenerator::className
private

◆ componentName

QString ActionGenerator::componentName
private

◆ description

QString ActionGenerator::description
private

◆ family

QString ActionGenerator::family
private

◆ isItkFilter

bool ActionGenerator::isItkFilter
private

◆ itkFilterOutputType

QString ActionGenerator::itkFilterOutputType
private

◆ licence

QString ActionGenerator::licence
private

◆ name

QString ActionGenerator::name
private

Name of the action.

◆ tags

QStringList ActionGenerator::tags
private

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