Computer Assited Medical Intervention Tool Kit
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
ActionGenerator Class Reference

#include <ActionGenerator.h>

Static Public Member Functions

static bool generateActionFiles (QString xmlFileName, QString devDirectoryName, QString *elementClassName=NULL)
 

Protected Member Functions

 ActionGenerator (QString xmlFilename, QString devDirectoryName)
 
virtual void createElement () throw (QString)
 
virtual void generateActionFiles () throw (QString)
 
virtual void setDevDirectoryName (QString devDirectoryName) throw (QString)
 
virtual void setXmlFileName (QString xmlFileName) throw (QString)
 
virtual void writeCFile () throw (QString)
 
virtual void writeHFile () throw (QString)
 
virtual void writeImplementationFile () throw (QString)
 

Protected Attributes

std::set< QString > additionalIncludes
 Set of additional files to include. More...
 
QString className
 Name of the created Action class redundant information already contained in theAction, for practicle purpose. More...
 
QDir devDirectoryName
 Where to store the produced files. More...
 
bool hasParameters
 Does the action have parameters stored as properties ? More...
 
QMap< QString, QPair< QString,
QString > > 
parameters
 List containing all parameters of the action stored as properties of theAction For practical reasons, this map contains for each parameter: More...
 
std::auto_ptr< ActiontheAction
 XML DOM Element create by CodeSynthesis This action contains all of the informations of the xml file. More...
 
QFileInfo xmlFileName
 Where to find the XML description of the Action. More...
 

Private Attributes

bool isItkFilter
 

Constructor & Destructor Documentation

ActionGenerator::ActionGenerator ( QString  xmlFilename,
QString  devDirectoryName 
)
protected

Member Function Documentation

void ActionGenerator::createElement ( ) throw (QString)
protectedvirtual
bool ActionGenerator::generateActionFiles ( QString  xmlFileName,
QString  devDirectoryName,
QString *  elementClassName = NULL 
)
static
void ActionGenerator::generateActionFiles ( ) throw (QString)
protectedvirtual
void ActionGenerator::setDevDirectoryName ( QString  devDirectoryName) throw (QString)
protectedvirtual

Referenced by ActionGenerator().

void ActionGenerator::setXmlFileName ( QString  xmlFileName) throw (QString)
protectedvirtual

Referenced by ActionGenerator().

void ActionGenerator::writeCFile ( ) throw (QString)
protectedvirtual
void ActionGenerator::writeHFile ( ) throw (QString)
protectedvirtual
void ActionGenerator::writeImplementationFile ( ) throw (QString)
protectedvirtual

References className, devDirectoryName, and theAction.

Referenced by generateActionFiles().

Member Data Documentation

std::set<QString> ActionGenerator::additionalIncludes
protected

Set of additional files to include.

Referenced by createElement(), and writeCFile().

QString ActionGenerator::className
protected

Name of the created Action class redundant information already contained in theAction, for practicle purpose.

Referenced by ActionGenerator(), createElement(), generateActionFiles(), writeCFile(), writeHFile(), and writeImplementationFile().

QDir ActionGenerator::devDirectoryName
protected

Where to store the produced files.

Referenced by writeCFile(), writeHFile(), and writeImplementationFile().

bool ActionGenerator::hasParameters
protected

Does the action have parameters stored as properties ?

Referenced by ActionGenerator(), and createElement().

bool ActionGenerator::isItkFilter
private
QMap<QString, QPair<QString, QString> > ActionGenerator::parameters
protected

List containing all parameters of the action stored as properties of theAction For practical reasons, this map contains for each parameter:

  • key: the name of the parameter
  • value: a QPair of element:
    • first: the type of the parameter
    • second: the default value of the parameter (if non exists in the XML file, a default one is given)

Referenced by createElement(), and writeCFile().

std::auto_ptr<Action> ActionGenerator::theAction
protected

XML DOM Element create by CodeSynthesis This action contains all of the informations of the xml file.

Referenced by createElement(), writeCFile(), writeHFile(), and writeImplementationFile().

QFileInfo ActionGenerator::xmlFileName
protected

Where to find the XML description of the Action.

Referenced by createElement().


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