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

Method LoadPoints

qt/screenshoter.cpp:471–492  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

469}
470
471bool 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
494std::string DebugPrint(Screenshoter::State state)
495{

Callers

nothing calls this directly

Calls 3

ParsePointsStrFunction · 0.85
clearMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected