Computer Assited Medical Intervention Tool Kit  version 4.1
Public Types | Public Member Functions | Static Public Member Functions | Static Private Member Functions | Private Attributes | List of all members
ParameterGenerator Class Reference

Generate parameters. More...

#include <ParameterGenerator.h>

Public Types

enum  ParameterTypeGenerator {
  INT, DOUBLE, BOOLEAN, QSTRING,
  QDATE, QTIME, QCOLOR, QPOINT,
  QPOINTF, QVECTOR3D, QVECTOR4D, UNKNOWN
}
 

Public Member Functions

QString getAdditionalInclude () const
 
QString getCppName () const
 create a name that can be used as C++ variable name (remove all white space) More...
 
QString getDefaultValue () const
 
QString getDescription () const
 
QString getName () const
 
QString getPropertyQVariant () const
 
QString getQVariantConversion () const
 
QString getToString () const
 
QString getType () const
 
QString getUnit () const
 
bool isEditable () const
 
bool needsAdditionalInclude () const
 
 ParameterGenerator (cepcoreschema::Parameter &domParameter)
 

Static Public Member Functions

static QString getTypeDefaultValue (QString typeName)
 

Static Private Member Functions

static QMap< ParameterGenerator::ParameterTypeGenerator, QString > & getDefaultValues ()
 
static QMap< ParameterGenerator::ParameterTypeGenerator, QString > & getTypeNames ()
 
static void initNamesAndValues ()
 

Private Attributes

QString defaultValue
 
QString description
 
bool editable
 
QString name
 
ParameterTypeGenerator type
 
QString unit
 

Detailed Description

Generate parameters.

Member Enumeration Documentation

◆ ParameterTypeGenerator

Enumerator
INT 
DOUBLE 
BOOLEAN 
QSTRING 
QDATE 
QTIME 
QCOLOR 
QPOINT 
QPOINTF 
QVECTOR3D 
QVECTOR4D 
UNKNOWN 

Constructor & Destructor Documentation

◆ ParameterGenerator()

ParameterGenerator::ParameterGenerator ( cepcoreschema::Parameter &  domParameter)

Member Function Documentation

◆ getAdditionalInclude()

QString ParameterGenerator::getAdditionalInclude ( ) const

◆ getCppName()

QString ParameterGenerator::getCppName ( ) const

create a name that can be used as C++ variable name (remove all white space)

◆ getDefaultValue()

QString ParameterGenerator::getDefaultValue ( ) const

◆ getDefaultValues()

QMap< ParameterGenerator::ParameterTypeGenerator, QString > & ParameterGenerator::getDefaultValues ( )
staticprivate

◆ getDescription()

QString ParameterGenerator::getDescription ( ) const

References description.

◆ getName()

QString ParameterGenerator::getName ( ) const

◆ getPropertyQVariant()

QString ParameterGenerator::getPropertyQVariant ( ) const

◆ getQVariantConversion()

QString ParameterGenerator::getQVariantConversion ( ) const

◆ getToString()

QString ParameterGenerator::getToString ( ) const

◆ getType()

QString ParameterGenerator::getType ( ) const

◆ getTypeDefaultValue()

QString ParameterGenerator::getTypeDefaultValue ( QString  typeName)
static

◆ getTypeNames()

QMap< ParameterGenerator::ParameterTypeGenerator, QString > & ParameterGenerator::getTypeNames ( )
staticprivate

◆ getUnit()

QString ParameterGenerator::getUnit ( ) const

◆ initNamesAndValues()

void ParameterGenerator::initNamesAndValues ( )
staticprivate

◆ isEditable()

bool ParameterGenerator::isEditable ( ) const

◆ needsAdditionalInclude()

bool ParameterGenerator::needsAdditionalInclude ( ) const

Member Data Documentation

◆ defaultValue

QString ParameterGenerator::defaultValue
private

◆ description

QString ParameterGenerator::description
private

◆ editable

bool ParameterGenerator::editable
private

◆ name

QString ParameterGenerator::name
private

◆ type

ParameterTypeGenerator ParameterGenerator::type
private

◆ unit

QString ParameterGenerator::unit
private

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