MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / getExporter

Method getExporter

radiantcore/model/ModelFormatManager.cpp:153–161  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151}
152
153IModelExporterPtr 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
163void ModelFormatManager::foreachImporter(const std::function<void(const IModelImporterPtr&)>& functor)
164{

Callers 3

TEST_FFunction · 0.80
saveScaledModelMethod · 0.80
exportSelectedAsModelFunction · 0.80

Calls 4

to_upper_copyFunction · 0.85
findMethod · 0.45
endMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected