| 446 | } |
| 447 | |
| 448 | bool Screenshoter::LoadRects(std::string const & rects) |
| 449 | { |
| 450 | if (Platform::IsFileExistsByFullPath(rects)) |
| 451 | { |
| 452 | std::ifstream fin(rects); |
| 453 | std::string line; |
| 454 | while (std::getline(fin, line)) |
| 455 | { |
| 456 | if (!ParseRectsStr(line, m_rectsToProcess)) |
| 457 | { |
| 458 | m_rectsToProcess.clear(); |
| 459 | return false; |
| 460 | } |
| 461 | } |
| 462 | } |
| 463 | else if (!ParseRectsStr(rects, m_rectsToProcess)) |
| 464 | { |
| 465 | m_rectsToProcess.clear(); |
| 466 | return false; |
| 467 | } |
| 468 | return !m_rectsToProcess.empty(); |
| 469 | } |
| 470 | |
| 471 | bool Screenshoter::LoadPoints(std::string const & points) |
| 472 | { |
nothing calls this directly
no test coverage detected