FairMQ: Implement GetPropertyKeys config API

This commit is contained in:
Dennis Klein
2017-09-27 21:37:51 +02:00
committed by Mohammad Al-Turany
parent 2589ca5ced
commit 8c8ee45914
4 changed files with 27 additions and 1 deletions

View File

@@ -206,6 +206,8 @@ class PluginServices
auto GetChannelInfo() const -> std::unordered_map<std::string, int> { return fConfig->GetChannelInfo(); }
auto GetPropertyKeys() const -> std::vector<std::string> { return fConfig->GetPropertyKeys(); }
/// @brief Subscribe to property updates of type T
/// @param subscriber
/// @param callback function
@@ -228,7 +230,6 @@ class PluginServices
// auto UnsubscribeFromPropertyChange(const std::string& subscriber) -> void { fConfig->Unsubscribe<T>(subscriber); }
//
// TODO Fix property subscription
// TODO Property iterator
static const std::unordered_map<std::string, DeviceState> fkDeviceStateStrMap;
static const std::unordered_map<DeviceState, std::string, tools::HashEnum<DeviceState>> fkStrDeviceStateMap;