| 55 | )"; |
| 56 | |
| 57 | std::pair<int, int> tryParseResolution(const std::string &s) { |
| 58 | std::istringstream iss(s); |
| 59 | |
| 60 | int width, height; |
| 61 | char comma; |
| 62 | if (iss >> width >> comma >> height && comma == ',') { |
| 63 | return std::make_pair(width, height); |
| 64 | } else { |
| 65 | std::cerr << "Failed to parse resolution from " << s << std::endl; |
| 66 | exit(EXIT_FAILURE); |
| 67 | } |
| 68 | } |
| 69 | |
| 70 | // Runs Python visualization using system() |
| 71 | bool runPythonVisualizer(const VisualizerArgs &args) { |
no outgoing calls
no test coverage detected