Add PluginServices::DeleteProperty, test for property accessors

This commit is contained in:
Alexey Rybalchenko
2019-06-12 16:49:24 +02:00
committed by Dennis Klein
parent 5271d4236e
commit 7bea2bc0e6
4 changed files with 101 additions and 40 deletions

View File

@@ -107,6 +107,8 @@ class Plugin
bool UpdateProperty(const std::string& key, T val) { return fPluginServices->UpdateProperty(key, val); }
bool UpdateProperties(const fair::mq::Properties& input) { return fPluginServices->UpdateProperties(input); }
void DeleteProperty(const std::string& key) { fPluginServices->DeleteProperty(key); }
template<typename T>
auto SubscribeToPropertyChange(std::function<void(const std::string& key, T newValue)> callback) -> void { fPluginServices->SubscribeToPropertyChange<T>(fkName, callback); }
template<typename T>