20 #ifndef RUNTIME_PARAMETER_SETTERS_H
21 #define RUNTIME_PARAMETER_SETTERS_H
25 #include <QStringList>
29 class ParameterSettable;
38 virtual void onParameterChanges(
ParameterSettable*
object, QString paramName ) = 0;
48 this->descrPath = descrPath;
49 this->name = descrPath.split(
'/', QString::SkipEmptyParts ).last();
122 QString getDescriptionPath() {
return descrPath; };
152 template<
class T,
typename H>
156 MethodSetter( QString paramPath,
void (T::*setter)(H), H (T::*getter)()
const )
162 T* robject =
static_cast<T*
>( object );
163 (robject->*setter)( newvalue );
164 return (robject->*getter)();
168 T* robject =
static_cast<T*
>( object );
169 retvar = (robject->*getter)();
173 void (T::*setter)(H);
175 H (T::*getter)()
const;