MCPcopy Create free account
hub / github.com/LibrePCB/LibrePCB / foreach

Function foreach

apps/librepcb-cli/commandlineinterface.cpp:612–616  ·  view source on GitHub ↗

2) load files from ZIP

Source from the content-addressed store, hash-verified

610 projectFs->removeDirRecursively(); // 1) get a clean initial state
611 projectFs->loadFromZip(projectFp); // 2) load files from ZIP
612 foreach (const QString& fn, projectFs->getFiles()) {
613 if (fn.endsWith(".lpp")) {
614 projectFileName = fn;
615 }
616 }
617 } else {
618 projectFs = TransactionalFileSystem::open(projectFp.getParentDir(), save);
619 projectFileName = projectFp.getFilename();

Callers 2

openProjectMethod · 0.70
openWorkspaceFunction · 0.50

Calls 15

QStringClass · 0.85
getSeverityStrTrMethod · 0.80
getAssemblyVariantsMethod · 0.80
getBoardByNameMethod · 0.80
getBoardByIndexMethod · 0.80
runAndApplyMethod · 0.80
getDrcSettingsMethod · 0.80
setDocumentNameMethod · 0.80
getUuidMethod · 0.80
lastMethod · 0.80

Tested by

no test coverage detected