MCPcopy Create free account
hub / github.com/comaps/comaps / LoadRects

Method LoadRects

qt/screenshoter.cpp:448–469  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

446}
447
448bool 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
471bool Screenshoter::LoadPoints(std::string const & points)
472{

Callers

nothing calls this directly

Calls 3

ParseRectsStrFunction · 0.85
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected