Get the config value
| 38 | |
| 39 | // Get the config value |
| 40 | bool Properties::getString(const std::string &key, std::string &value) const { |
| 41 | std::lock_guard<std::mutex> lock(mutex_); |
| 42 | auto it = properties_.find(key); |
| 43 | |
| 44 | if (it != properties_.end()) { |
| 45 | value = it->second.value; |
| 46 | return true; |
| 47 | } else { |
| 48 | return false; |
| 49 | } |
| 50 | } |
| 51 | |
| 52 | utils::optional<std::string> Properties::getString(const std::string& key) const { |
| 53 | std::string result; |
no test coverage detected