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
Return a plugin that handles a specific file extension.
 
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GetPlugin(GFX_FILE_T aType) const
Return a plugin instance for a specific file type.
 
std::vector< GFX_FILE_T > GetImportableFileTypes() const
Vector containing all GFX_FILE_T values that can be imported.
 
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...