MCPcopy Create free account
hub / github.com/NatronGitHub/Natron / findPluginById

Method findPluginById

Engine/AppManagerPrivate.cpp:428–446  ·  view source on GitHub ↗

only used for Natron internal plugins (ViewerGroup, Dot, DiskCache, BackDrop, Roto) see also AppManager::getPluginBinary(), OFX::Host::PluginCache::getPluginById()

Source from the content-addressed store, hash-verified

426// see also AppManager::getPluginBinary(), OFX::Host::PluginCache::getPluginById()
427//
428Plugin*
429AppManagerPrivate::findPluginById(const QString& newId,
430 int major,
431 int minor) const
432{
433 for (PluginsMap::const_iterator it = _plugins.begin(); it != _plugins.end(); ++it) {
434 for (PluginVersionsOrdered::const_reverse_iterator itver = it->second.rbegin();
435 itver != it->second.rend();
436 ++itver) {
437 if ( ( (*itver)->getPluginID() == newId ) &&
438 ( (*itver)->getMajorVersion() == major ) &&
439 ( (*itver)->getMinorVersion() == minor ) ) {
440 return (*itver);
441 }
442 }
443 }
444
445 return 0;
446}
447
448void
449AppManagerPrivate::declareSettingsToPython()

Callers 1

Calls 5

beginMethod · 0.45
endMethod · 0.45
getPluginIDMethod · 0.45
getMajorVersionMethod · 0.45
getMinorVersionMethod · 0.45

Tested by

no test coverage detected