| 3344 | } |
| 3345 | |
| 3346 | std::string |
| 3347 | AppManager::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 | |
| 3361 | AppTLS* |
no test coverage detected