36 std::unique_ptr<GRAPHICS_IMPORT_PLUGIN> ret;
40 case DXF: ret = std::make_unique<DXF_IMPORT_PLUGIN>();
break;
41 case SVG: ret = std::make_unique<SVG_IMPORT_PLUGIN>();
break;
42 default:
throw std::runtime_error(
"Unhandled graphics format" );
break;
50 const wxString& aExtension )
const
55 const std::vector<std::string>& fileExtensions = plugin->GetFileExtensions();
GFX_FILE_T
< List of handled file types.
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GetPluginByExt(const wxString &aExtension) const
Returns a plugin instance for a specific file type.
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GetPlugin(GFX_FILE_T aType) const
std::vector< GFX_FILE_T > GetImportableFileTypes() const
Returns a plugin that handles a specific file extension.
MODEL3D_FORMAT_TYPE fileType(const char *aFileName)
bool compareFileExtensions(const std::string &aExtension, const std::vector< std::string > &aReference, bool aCaseSensitive)
Compare the given extension against the reference extensions to see if it matches any of the referenc...