| 3330 | } |
| 3331 | |
| 3332 | std::string |
| 3333 | AppManager::getReaderPluginIDForFileType(const std::string & extension) const |
| 3334 | { |
| 3335 | // This will perform a case insensitive find |
| 3336 | IOPluginsMap::const_iterator found = _imp->readerPlugins.find(extension); |
| 3337 | |
| 3338 | if ( found == _imp->readerPlugins.end() ) { |
| 3339 | return std::string(); |
| 3340 | } |
| 3341 | // Return the "best" plug-in (i.e: higher score) |
| 3342 | |
| 3343 | return found->second.empty() ? std::string() : found->second.rbegin()->pluginID; |
| 3344 | } |
| 3345 | |
| 3346 | std::string |
| 3347 | AppManager::getWriterPluginIDForFileType(const std::string & extension) const |
no test coverage detected