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

Method validateMigration

src/Mod/Material/App/ModelManager.cpp:347–363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347void ModelManager::validateMigration(const std::shared_ptr<Materials::ModelLibrary>& library)
348{
349 auto models = _localManager->libraryModels(library->getName());
350 for (auto& it : *models) {
351 auto uuid = it.getUUID();
352 auto path = it.getPath();
353 auto name = it.getName();
354 Base::Console().log("\t('%s', '%s', '%s')\n",
355 uuid.toStdString().c_str(),
356 path.toStdString().c_str(),
357 name.toStdString().c_str());
358
359 auto model = _localManager->getModel(uuid);
360 auto externalModel = _externalManager->getModel(uuid);
361 model->validate(*externalModel);
362 }
363}
364
365// Cache stats
366double ModelManager::modelHitRate()

Callers 1

migrateMethod · 0.45

Calls 9

toStdStringMethod · 0.80
libraryModelsMethod · 0.45
getNameMethod · 0.45
getUUIDMethod · 0.45
getPathMethod · 0.45
logMethod · 0.45
c_strMethod · 0.45
getModelMethod · 0.45
validateMethod · 0.45

Tested by

no test coverage detected