| 31 | } |
| 32 | |
| 33 | bool GetPath(const string& line, Paths64& paths) |
| 34 | { |
| 35 | Path64 p; |
| 36 | int64_t x = 0, y = 0; |
| 37 | string::const_iterator s_it = line.cbegin(), s_end = line.cend(); |
| 38 | while (GetInt(s_it, s_end, x) && GetInt(s_it, s_end, y)) |
| 39 | p.push_back(Point64(x, y)); |
| 40 | if (p.empty()) return false; |
| 41 | paths.push_back(p); |
| 42 | return true; |
| 43 | } |
| 44 | |
| 45 | void GetPaths(ifstream& source, Paths64& paths) |
| 46 | { |