MCPcopy Create free account
hub / github.com/FreeCAD/FreeCAD / getUUIDFromPath

Method getUUIDFromPath

src/Mod/Material/App/MaterialLibrary.cpp:360–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

358}
359
360QString MaterialLibraryLocal::getUUIDFromPath(const QString& path) const
361{
362 QString filePath = getRelativePath(path);
363
364 auto search = _materialPathMap->find(filePath);
365 if (search != _materialPathMap->end()) {
366 return search->second->getUUID();
367 }
368
369 throw MaterialNotFound();
370}

Callers

nothing calls this directly

Calls 4

MaterialNotFoundClass · 0.85
findMethod · 0.45
endMethod · 0.45
getUUIDMethod · 0.45

Tested by

no test coverage detected