This is the base class for the hierarchy for wrapping the methods for setting a runtime modifiable parameter. More...

Public Member Functions | |
| RuntimeParameterSetter (QString descrPath) | |
| constructor More... | |
| virtual | ~RuntimeParameterSetter () |
| destructor More... | |
| virtual void | get (ParameterSettable *object, QString &ret) |
| Return the value of the object's parameter supposing that the parameter's type is QString. More... | |
| virtual void | get (ParameterSettable *object, int &ret) |
| Return the value of the object's parameter supposing that the parameter's type is int. More... | |
| virtual void | get (ParameterSettable *object, unsigned int &ret) |
| Return the value of the object's parameter supposing that the parameter's type is unsigned int. More... | |
| virtual void | get (ParameterSettable *object, double &ret) |
| Return the value of the object's parameter supposing that the parameter's type is double. More... | |
| virtual void | get (ParameterSettable *object, float &ret) |
| Return the value of the object's parameter supposing that the parameter's type is float. More... | |
| virtual void | get (ParameterSettable *object, bool &ret) |
| Return the value of the object's parameter supposing that the parameter's type is boolean. More... | |
| QString | getDescriptionPath () |
| return the full path to the description of this parameter More... | |
| QString | getName () |
| return the name of this runtime modifiable parameter More... | |
| virtual QString | set (ParameterSettable *object, QString newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is QString. More... | |
| virtual int | set (ParameterSettable *object, int newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is int. More... | |
| virtual unsigned int | set (ParameterSettable *object, unsigned int newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is unsigned int. More... | |
| virtual double | set (ParameterSettable *object, double newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is double. More... | |
| virtual float | set (ParameterSettable *object, float newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is float. More... | |
| virtual bool | set (ParameterSettable *object, bool newvalue) |
| Set the value of the object's parameter supposing that the parameter's type is boolean. More... | |
Protected Attributes | |
| QString | descrPath |
| the full path to the description of this parameter More... | |
| QString | name |
| the name of the runtime modifiable parameter More... | |
Detailed Description
This is the base class for the hierarchy for wrapping the methods for setting a runtime modifiable parameter.
Definition at line 48 of file runtimeparametersetters.h.
Constructor & Destructor Documentation
|
inline |
constructor
Definition at line 51 of file runtimeparametersetters.h.
|
inlinevirtual |
destructor
Definition at line 56 of file runtimeparametersetters.h.
Member Function Documentation
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is QString.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 64 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
Referenced by ParameterSettable::getRuntimeParameter().
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is int.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 69 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is unsigned int.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 74 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is double.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 79 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is float.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 84 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Return the value of the object's parameter supposing that the parameter's type is boolean.
- Parameters
-
object is the owner of the parameter ret is the reference variable on which the value is returned
Definition at line 89 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
inline |
return the full path to the description of this parameter
Definition at line 126 of file runtimeparametersetters.h.
|
inline |
return the name of this runtime modifiable parameter
Definition at line 124 of file runtimeparametersetters.h.
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is QString.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 28 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
Referenced by ParameterSettable::setRuntimeParameter().
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is int.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 34 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is unsigned int.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 40 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is double.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 46 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is float.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 52 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
|
virtual |
Set the value of the object's parameter supposing that the parameter's type is boolean.
- Parameters
-
object is the owner of the parameter newvalue the new value for the parameter
- Returns
- the actual value of the parameter after the change; might be different from newvalue
Definition at line 58 of file runtimeparametersetters.cpp.
References RuntimeParameterSetter::descrPath, ConfigurationHelper::getString(), Factory::getTypeDescriptions(), and RuntimeParameterSetter::name.
Member Data Documentation
|
protected |
the full path to the description of this parameter
Definition at line 131 of file runtimeparametersetters.h.
Referenced by RuntimeParameterSetter::get(), and RuntimeParameterSetter::set().
|
protected |
the name of the runtime modifiable parameter
Definition at line 126 of file runtimeparametersetters.h.
Referenced by RuntimeParameterSetter::get(), and RuntimeParameterSetter::set().
The documentation for this class was generated from the following files:
- configuration/include/runtimeparametersetters.h
- configuration/src/runtimeparametersetters.cpp