BlockParam: add BlockParam::commit_no_notification()

This commit is contained in:
Beat Küng
2017-05-03 08:37:14 +02:00
committed by Lorenz Meier
parent 3bcb710da9
commit b4178e0388
2 changed files with 16 additions and 0 deletions
+6
View File
@@ -113,6 +113,12 @@ void BlockParam<T>::commit()
if (_handle != PARAM_INVALID) { param_set(_handle, &_val); }
}
template <class T>
void BlockParam<T>::commit_no_notification()
{
if (_handle != PARAM_INVALID) { param_set_no_notification(_handle, &_val); }
}
template <class T>
BlockParam<T>::~BlockParam() {};
+10
View File
@@ -83,7 +83,17 @@ public:
BlockParam &operator=(const BlockParam &) = delete;
inline T get() const { return _val; }
/**
* Store the parameter value to the parameter storage (@see param_set())
*/
void commit();
/**
* Store the parameter value to the parameter storage, w/o notifying the system (@see param_set_no_notification())
*/
void commit_no_notification();
void set(T val);
void update() override;
virtual ~BlockParam();