Computer Assited Medical Intervention Tool Kit  version 5.0
ComponentGenerator Class Reference

Create a component. More...

#include <ComponentGenerator.h>

+ Collaboration diagram for ComponentGenerator:

Public Member Functions

 ComponentGenerator (cepcoreschema::Component &domComponent, QString licence)
 
 ComponentGenerator (QString xmlFileName, QString licence)
 
void generateFiles (QString directoryName)
 
QString getClassName () const
 
QStringList getSuffixesList ()
 
 ~ComponentGenerator ()=default
 

Private Member Functions

void createFromDom (cepcoreschema::Component &dom)
 Helper methods for constructors. More...
 
QString getParentClassName ()
 
void writeCFile (QString directoryName)
 
void writeHFile (QString directoryName)
 

Private Attributes

QString className
 
QVector< ParameterGenerator * > componentProperties
 
QString description
 
QString licence
 
QString name
 Name of the action. More...
 
QString representation
 
QStringList suffixesList
 

Detailed Description

Create a component.

Constructor & Destructor Documentation

◆ ComponentGenerator() [1/2]

ComponentGenerator::ComponentGenerator ( QString  xmlFileName,
QString  licence 
)

◆ ComponentGenerator() [2/2]

ComponentGenerator::ComponentGenerator ( cepcoreschema::Component &  domComponent,
QString  licence 
)

◆ ~ComponentGenerator()

ComponentGenerator::~ComponentGenerator ( )
default

Member Function Documentation

◆ createFromDom()

void ComponentGenerator::createFromDom ( cepcoreschema::Component &  dom)
private

Helper methods for constructors.

References description, Properties::get(), ClassNameHandler::getClassName(), and Component::properties.

+ Here is the call graph for this function:

◆ generateFiles()

void ComponentGenerator::generateFiles ( QString  directoryName)

◆ getClassName()

QString ComponentGenerator::getClassName ( ) const

◆ getParentClassName()

QString ComponentGenerator::getParentClassName ( )
private

◆ getSuffixesList()

QStringList ComponentGenerator::getSuffixesList ( )

◆ writeCFile()

void ComponentGenerator::writeCFile ( QString  directoryName)
private

◆ writeHFile()

void ComponentGenerator::writeHFile ( QString  directoryName)
private

Member Data Documentation

◆ className

QString ComponentGenerator::className
private

◆ componentProperties

QVector<ParameterGenerator*> ComponentGenerator::componentProperties
private

◆ description

QString ComponentGenerator::description
private

◆ licence

QString ComponentGenerator::licence
private

◆ name

QString ComponentGenerator::name
private

Name of the action.

◆ representation

QString ComponentGenerator::representation
private

◆ suffixesList

QStringList ComponentGenerator::suffixesList
private

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