| 469 | } |
| 470 | |
| 471 | bool Screenshoter::LoadPoints(std::string const & points) |
| 472 | { |
| 473 | if (Platform::IsFileExistsByFullPath(points)) |
| 474 | { |
| 475 | std::ifstream fin(points); |
| 476 | std::string line; |
| 477 | while (std::getline(fin, line)) |
| 478 | { |
| 479 | if (!ParsePointsStr(line, m_pointsToProcess)) |
| 480 | { |
| 481 | m_pointsToProcess.clear(); |
| 482 | return false; |
| 483 | } |
| 484 | } |
| 485 | } |
| 486 | else if (!ParsePointsStr(points, m_pointsToProcess)) |
| 487 | { |
| 488 | m_pointsToProcess.clear(); |
| 489 | return false; |
| 490 | } |
| 491 | return !m_pointsToProcess.empty(); |
| 492 | } |
| 493 | |
| 494 | std::string DebugPrint(Screenshoter::State state) |
| 495 | { |
nothing calls this directly
no test coverage detected