------------------------------------------------------------------------------
| 42 | |
| 43 | //------------------------------------------------------------------------------ |
| 44 | bool GetUIntValue(const nlohmann::json& root, const std::string& key, unsigned int& value) |
| 45 | { |
| 46 | auto it = root.find(key); |
| 47 | if (it == root.end() || !it.value().is_number_unsigned()) |
| 48 | { |
| 49 | return false; |
| 50 | } |
| 51 | value = it.value(); |
| 52 | return true; |
| 53 | } |
| 54 | |
| 55 | //------------------------------------------------------------------------------ |
| 56 | bool GetDoubleValue(const nlohmann::json& root, const std::string& key, double& value) |
no test coverage detected