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

Method getLibrary

src/Mod/Material/App/ModelManagerLocal.cpp:215–224  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215std::shared_ptr<ModelLibrary> ModelManagerLocal::getLibrary(const QString& name) const
216{
217 for (auto& library : *_libraryList) {
218 if (library->isName(name)) {
219 return library;
220 }
221 }
222
223 throw LibraryNotFound();
224}

Callers 1

libraryModelsMethod · 0.45

Calls 1

LibraryNotFoundClass · 0.70

Tested by

no test coverage detected