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

Method getReaderPluginIDForFileType

Engine/AppManager.cpp:3624–3636  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3622}
3623
3624std::string
3625AppManager::getReaderPluginIDForFileType(const std::string & extension) const
3626{
3627 // This will perform a case insensitive find
3628 IOPluginsMap::const_iterator found = _imp->readerPlugins.find(extension);
3629
3630 if ( found == _imp->readerPlugins.end() ) {
3631 return std::string();
3632 }
3633 // Return the "best" plug-in (i.e: higher score)
3634
3635 return found->second.empty() ? std::string() : found->second.rbegin()->pluginID;
3636}
3637
3638std::string
3639AppManager::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