MCPcopy Create free account
hub / github.com/commontk/CTK / loadModules

Method loadModules

Libs/CommandLineModules/Core/ctkCmdLineModuleDirectoryWatcher.cpp:416–434  ·  view source on GitHub ↗

-----------------------------------------------------------------------------

Source from the content-addressed store, hash-verified

414
415//-----------------------------------------------------------------------------
416QList<ctkCmdLineModuleReferenceResult> ctkCmdLineModuleDirectoryWatcherPrivate::loadModules(const QStringList& executables)
417{
418 QList<ctkCmdLineModuleReferenceResult> refResults = QtConcurrent::blockingMapped(executables,
419 ctkCmdLineModuleConcurrentRegister(this->ModuleManager, this->Debug));
420
421 for (int i = 0; i < executables.size(); ++i)
422 {
423 if (refResults[i].m_Reference)
424 {
425 this->MapFileNameToReferenceResult[executables[i]] = refResults[i];
426 }
427 }
428
429 // Broadcast error messages.
430 QString errorMessages = ctkCmdLineModuleUtils::errorMessagesFromModuleRegistration(refResults, this->ModuleManager->validationMode());
431 q->emitErrorDectectedSignal(errorMessages);
432
433 return refResults;
434}
435
436
437//-----------------------------------------------------------------------------

Callers 3

setAdditionalModulesMethod · 0.95
setModulesMethod · 0.95
onFileChangedMethod · 0.95

Calls 3

validationModeMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected