MCPcopy Create free account
hub / github.com/OSVR/OSVR-Core / removeCalibration

Function removeCalibration

apps/osvr_calibrate.cpp:72–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

70void waitForEnter() { std::cin.ignore(); }
71
72inline 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 &current) {
79 return current.isMember("calibration") &&
80 current["calibration"].isBool() &&
81 current["calibration"].asBool();
82 });
83}
84
85int main(int argc, char *argv[]) {
86 std::string configName;

Callers 1

mainFunction · 0.85

Calls 2

remove_levels_ifFunction · 0.85
parseMethod · 0.45

Tested by

no test coverage detected