class sr_param_delegate { \
public: \
GC_HAS_CALLBACKS(); \
\
sr_param_delegate(gs::cnf::gs_param_base *orig, std::string
name) { \
param =
new gs::cnf::gs_param<val_type>(
name); \
} \
\
~sr_param_delegate() { \
GC_UNREGISTER_CALLBACKS(); \
delete param; \
} \
\
\
gs::cnf::callback_return_type callback( \
gs::cnf::gs_param_base& changed_param, \
gs::cnf::callback_type reason) { \
val_type value; \
changed_param.getValue(value); \
param->setValue(value); \
} \
\
private: \
gs::cnf::gs_param<val_type> *param; \
}; \
sr_param_delegate *delegate(std::string
name) { \
return new sr_param_delegate(this, name); \
}
post_write
Definition: callback.py:7
string name
Definition: setup.py:15
#define GC_RETURN_OK
Definition: common.h:39