| 47 | ConfigurableComponent::~ConfigurableComponent() = default; |
| 48 | |
| 49 | bool ConfigurableComponent::getProperty(const std::string &name, Property &prop) const { |
| 50 | std::lock_guard<std::mutex> lock(configuration_mutex_); |
| 51 | |
| 52 | auto &&it = properties_.find(name); |
| 53 | |
| 54 | if (it != properties_.end()) { |
| 55 | prop = it->second; |
| 56 | return true; |
| 57 | } else { |
| 58 | return false; |
| 59 | } |
| 60 | } |
| 61 | |
| 62 | /** |
| 63 | * Sets the property using the provided name |