| 527 | } |
| 528 | |
| 529 | int OnlineOptions::get_param(const string& param) |
| 530 | { |
| 531 | basic_regex re(param + "=([0-9]+)"); |
| 532 | smatch match; |
| 533 | for (auto& x : options) |
| 534 | if (regex_match(x, match, re)) |
| 535 | return atoi(match[1].str().c_str()); |
| 536 | throw runtime_error("parameter not found: " + param); |
| 537 | } |
| 538 | |
| 539 | int OnlineOptions::comp_sec() |
| 540 | { |
no test coverage detected