![]() |
Computer Assited Medical Intervention Tool Kit
version 4.0
|
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 |
Generate parameters.
ParameterGenerator::ParameterGenerator | ( | cepcoreschema::Parameter & | domParameter | ) |
References description, and initNamesAndValues().
QString ParameterGenerator::getAdditionalInclude | ( | ) | const |
QString ParameterGenerator::getCppName | ( | ) | const |
create a name that can be used as C++ variable name (remove all white space)
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getDefaultValue | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
|
staticprivate |
QString ParameterGenerator::getDescription | ( | ) | const |
References description.
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getName | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getPropertyQVariant | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getQVariantConversion | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getToString | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
QString ParameterGenerator::getType | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
|
static |
References initNamesAndValues().
Referenced by ActionParameterWidget::typeChanged(), and ComponentPropertyWidget::typeChanged().
|
staticprivate |
QString ParameterGenerator::getUnit | ( | ) | const |
Referenced by ComponentGenerator::writeCFile(), and ActionGenerator::writeCFile().
|
staticprivate |
References BOOLEAN, DOUBLE, INT, isInitialized, QCOLOR, QDATE, QPOINT, QPOINTF, QSTRING, QTIME, QVECTOR3D, QVECTOR4D, and UNKNOWN.
Referenced by getTypeDefaultValue(), and ParameterGenerator().
bool ParameterGenerator::isEditable | ( | ) | const |
bool ParameterGenerator::needsAdditionalInclude | ( | ) | const |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |