KiCad PCB EDA Suite
|
Manage vector graphics importers. More...
#include <graphics_import_mgr.h>
Public Types | |
enum | GFX_FILE_T { DXF , SVG } |
< List of handled file types. More... | |
using | TYPE_LIST = std::vector< GFX_FILE_T > |
Public Member Functions | |
GRAPHICS_IMPORT_MGR (const TYPE_LIST &aBlacklist) | |
Construct an import plugin manager, with a specified list of filetypes that are not permitted (can be used for when some file type support is not available due to config or other reasons) More... | |
TYPE_LIST | GetImportableFileTypes () const |
Returns a plugin that handles a specific file extension. More... | |
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > | GetPluginByExt (const wxString &aExtension) const |
Returns a plugin instance for a specific file type. More... | |
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > | GetPlugin (GFX_FILE_T aType) const |
Private Attributes | |
TYPE_LIST | m_importableTypes |
Manage vector graphics importers.
Definition at line 39 of file graphics_import_mgr.h.
using GRAPHICS_IMPORT_MGR::TYPE_LIST = std::vector<GFX_FILE_T> |
Definition at line 49 of file graphics_import_mgr.h.
< List of handled file types.
Enumerator | |
---|---|
DXF | |
SVG |
Definition at line 43 of file graphics_import_mgr.h.
GRAPHICS_IMPORT_MGR::GRAPHICS_IMPORT_MGR | ( | const TYPE_LIST & | aBlacklist | ) |
Construct an import plugin manager, with a specified list of filetypes that are not permitted (can be used for when some file type support is not available due to config or other reasons)
Vector containing all GFX_FILE_T values that can be imported.
Definition at line 34 of file graphics_import_mgr.cpp.
References DXF, m_importableTypes, and SVG.
|
inline |
Returns a plugin that handles a specific file extension.
Definition at line 59 of file graphics_import_mgr.h.
References m_importableTypes.
Referenced by GetPluginByExt().
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GRAPHICS_IMPORT_MGR::GetPlugin | ( | GFX_FILE_T | aType | ) | const |
Definition at line 50 of file graphics_import_mgr.cpp.
Referenced by BOOST_AUTO_TEST_CASE(), and GetPluginByExt().
std::unique_ptr< GRAPHICS_IMPORT_PLUGIN > GRAPHICS_IMPORT_MGR::GetPluginByExt | ( | const wxString & | aExtension | ) | const |
Returns a plugin instance for a specific file type.
Definition at line 67 of file graphics_import_mgr.cpp.
References compareFileExtensions(), fileType(), GetImportableFileTypes(), and GetPlugin().
Referenced by BOOST_AUTO_TEST_CASE().
|
private |
Definition at line 71 of file graphics_import_mgr.h.
Referenced by GetImportableFileTypes(), and GRAPHICS_IMPORT_MGR().