| 70 | void waitForEnter() { std::cin.ignore(); } |
| 71 | |
| 72 | inline Json::Value removeCalibration(std::string const &input) { |
| 73 | Json::Reader reader; |
| 74 | Json::Value root; |
| 75 | if (!reader.parse(input, root)) { |
| 76 | throw std::runtime_error("Could not parse route"); |
| 77 | } |
| 78 | return remove_levels_if(root, [](Json::Value const ¤t) { |
| 79 | return current.isMember("calibration") && |
| 80 | current["calibration"].isBool() && |
| 81 | current["calibration"].asBool(); |
| 82 | }); |
| 83 | } |
| 84 | |
| 85 | int main(int argc, char *argv[]) { |
| 86 | std::string configName; |
no test coverage detected