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

Method getReaderPluginIDForFileType

Engine/AppManager.cpp:3332–3344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3330}
3331
3332std::string
3333AppManager::getReaderPluginIDForFileType(const std::string & extension) const
3334{
3335 // This will perform a case insensitive find
3336 IOPluginsMap::const_iterator found = _imp->readerPlugins.find(extension);
3337
3338 if ( found == _imp->readerPlugins.end() ) {
3339 return std::string();
3340 }
3341 // Return the "best" plug-in (i.e: higher score)
3342
3343 return found->second.empty() ? std::string() : found->second.rbegin()->pluginID;
3344}
3345
3346std::string
3347AppManager::getWriterPluginIDForFileType(const std::string & extension) const

Callers 7

createReadNodeMethod · 0.80
CLArgs.cppFile · 0.80
createReadNodeMethod · 0.80

Calls 3

emptyMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected