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

Method getWriterPluginIDForFileType

Engine/AppManager.cpp:3638–3650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3636}
3637
3638std::string
3639AppManager::getWriterPluginIDForFileType(const std::string & extension) const
3640{
3641 // This will perform a case insensitive find
3642 IOPluginsMap::const_iterator found = _imp->writerPlugins.find(extension);
3643
3644 if ( found == _imp->writerPlugins.end() ) {
3645 return std::string();
3646 }
3647 // Return the "best" plug-in (i.e: higher score)
3648
3649 return found->second.empty() ? std::string() : found->second.rbegin()->pluginID;
3650}
3651
3652
3653AppTLS*

Callers 2

createWriteNodeMethod · 0.80

Calls 3

emptyMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected