| 151 | } |
| 152 | |
| 153 | IModelExporterPtr ModelFormatManager::getExporter(const std::string& extension) |
| 154 | { |
| 155 | auto extensionUpper = string::to_upper_copy(extension); |
| 156 | |
| 157 | auto found = _exporters.find(extensionUpper); |
| 158 | |
| 159 | // Return a cloned instance if we found a matching exporter |
| 160 | return found != _exporters.end() ? found->second->clone() : IModelExporterPtr(); |
| 161 | } |
| 162 | |
| 163 | void ModelFormatManager::foreachImporter(const std::function<void(const IModelImporterPtr&)>& functor) |
| 164 | { |
no test coverage detected