MethodSetter< T, H > Class Template Reference

The class implementing the setter when the parameter can changed by directly access to the value using the pointer to the parameter. More...

Inheritance diagram for MethodSetter< T, H >:

Public Member Functions

 MethodSetter (QString paramPath, void(T::*setter)(H), H(T::*getter)() const )
 the constructor
 
void get (ParameterSettable *object, H &retvar)
 return the parameter's value calling the getter method
 
set (ParameterSettable *object, H newvalue)
 set the parameter calling the setter method
 
- Public Member Functions inherited from RuntimeParameterSetter
 RuntimeParameterSetter (QString descrPath)
 constructor
 
virtual ~RuntimeParameterSetter ()
 destructor
 
virtual void get (ParameterSettable *object, QString &ret)
 Return the value of the object's parameter supposing that the parameter's type is QString.
 
virtual void get (ParameterSettable *object, int &ret)
 Return the value of the object's parameter supposing that the parameter's type is int.
 
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.
 
virtual void get (ParameterSettable *object, double &ret)
 Return the value of the object's parameter supposing that the parameter's type is double.
 
virtual void get (ParameterSettable *object, float &ret)
 Return the value of the object's parameter supposing that the parameter's type is float.
 
virtual void get (ParameterSettable *object, bool &ret)
 Return the value of the object's parameter supposing that the parameter's type is boolean.
 
QString getDescriptionPath ()
 return the full path to the description of this parameter
 
QString getName ()
 return the name of this runtime modifiable parameter
 
virtual QString set (ParameterSettable *object, QString newvalue)
 Set the value of the object's parameter supposing that the parameter's type is QString.
 
virtual int set (ParameterSettable *object, int newvalue)
 Set the value of the object's parameter supposing that the parameter's type is int.
 
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.
 
virtual double set (ParameterSettable *object, double newvalue)
 Set the value of the object's parameter supposing that the parameter's type is double.
 
virtual float set (ParameterSettable *object, float newvalue)
 Set the value of the object's parameter supposing that the parameter's type is float.
 
virtual bool set (ParameterSettable *object, bool newvalue)
 Set the value of the object's parameter supposing that the parameter's type is boolean.
 

Additional Inherited Members

- Protected Attributes inherited from RuntimeParameterSetter
QString descrPath
 the full path to the description of this parameter
 
QString name
 the name of the runtime modifiable parameter
 

Detailed Description

template<class T, typename H>
class farsa::MethodSetter< T, H >

The class implementing the setter when the parameter can changed by directly access to the value using the pointer to the parameter.

the constructor

set the parameter changing directly the value of the int parameter

the pointer to the parameter

The template class wrapping a setter method used for changing the value of the parameter

Definition at line 157 of file runtimeparametersetters.h.

Constructor & Destructor Documentation

MethodSetter ( QString  paramPath,
void(T::*)(H)  setter,
H(T::*)() const  getter 
)
inline

the constructor

Definition at line 160 of file runtimeparametersetters.h.

Member Function Documentation

void get ( ParameterSettable object,
H &  retvar 
)
inline

return the parameter's value calling the getter method

Definition at line 171 of file runtimeparametersetters.h.

H set ( ParameterSettable object,
newvalue 
)
inline

set the parameter calling the setter method

Definition at line 165 of file runtimeparametersetters.h.


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