| 3622 | } |
| 3623 | |
| 3624 | std::string |
| 3625 | AppManager::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 | |
| 3638 | std::string |
| 3639 | AppManager::getWriterPluginIDForFileType(const std::string & extension) const |
no test coverage detected