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

Method getWriterPluginIDForFileType

Engine/AppManager.cpp:3346–3358  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3344}
3345
3346std::string
3347AppManager::getWriterPluginIDForFileType(const std::string & extension) const
3348{
3349 // This will perform a case insensitive find
3350 IOPluginsMap::const_iterator found = _imp->writerPlugins.find(extension);
3351
3352 if ( found == _imp->writerPlugins.end() ) {
3353 return std::string();
3354 }
3355 // Return the "best" plug-in (i.e: higher score)
3356
3357 return found->second.empty() ? std::string() : found->second.rbegin()->pluginID;
3358}
3359
3360
3361AppTLS*

Callers 2

createWriteNodeMethod · 0.80

Calls 3

emptyMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected