runtimeparametersetters.cpp
29 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
30 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "QString" );
35 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
36 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "Int" );
41 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
42 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "Unsigned Int" );
47 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
48 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "Double" );
53 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
54 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "Float" );
59 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
60 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "Bool" );
65 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
66 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "QString" );
70 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
71 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "int" );
75 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
76 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "unsigned int" );
80 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
81 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "double" );
85 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
86 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "float" );
90 QString type = ConfigurationHelper::getString( Factory::getTypeDescriptions(), descrPath+"/type", "missing type declaration" );
91 throw TypeMismatchOnSettingRuntimeModifiableParameter( name.toLatin1().data(), type.toLatin1().data(), "bool" );
static ConfigurationParameters & getTypeDescriptions()
Returns the only instance of the typeDescriptions object.
Definition: factory.cpp:34
static QString getString(ConfigurationParameters ¶ms, QString paramPath, QString def=QString())
Return the value of parameter as QString, if the parameter has not been setted, it will return the de...
Definition: configurationhelper.cpp:71
virtual void get(ParameterSettable *object, QString &ret)
Return the value of the object's parameter supposing that the parameter's type is QString...
Definition: runtimeparametersetters.cpp:64
Definition: configurationhelper.cpp:24
The base for classes that can be configured/saved using a ConfigurationParameters object...
Definition: parametersettable.h:51
QString descrPath
the full path to the description of this parameter
Definition: runtimeparametersetters.h:131
The exception thrown when the type mismatch on the requested runtime modification of a parameter...
Definition: configurationexceptions.h:967
virtual QString set(ParameterSettable *object, QString newvalue)
Set the value of the object's parameter supposing that the parameter's type is QString.
Definition: runtimeparametersetters.cpp:28