| 60 | } |
| 61 | |
| 62 | int Properties::getInt(const std::string &key, int default_value) const { |
| 63 | std::lock_guard<std::mutex> lock(mutex_); |
| 64 | auto it = properties_.find(key); |
| 65 | |
| 66 | return it != properties_.end() ? std::stoi(it->second.value) : default_value; |
| 67 | } |
| 68 | |
| 69 | // Load Configure File |
| 70 | void Properties::loadConfigureFile(const char *fileName) { |
no test coverage detected