| 3636 | } |
| 3637 | |
| 3638 | std::string |
| 3639 | AppManager::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 | |
| 3653 | AppTLS* |
no test coverage detected