KiCad PCB EDA Suite
|
Hold a list of available plugins, created using a singleton REGISTER_PLUGIN object. More...
#include <io_mgr.h>
Classes | |
struct | ENTRY |
Public Member Functions | |
void | Register (PCB_FILE_T aType, const wxString &aName, std::function< PLUGIN *(void)> aCreateFunc) |
PLUGIN * | Create (PCB_FILE_T aFileType) const |
const std::vector< ENTRY > & | AllPlugins () const |
Static Public Member Functions | |
static PLUGIN_REGISTRY * | Instance () |
Private Attributes | |
std::vector< ENTRY > | m_plugins |
Hold a list of available plugins, created using a singleton REGISTER_PLUGIN object.
This way, plugins can be added link-time.
|
inline |
Definition at line 120 of file io_mgr.h.
References m_plugins.
Referenced by IO_MGR::EnumFromStr(), and IO_MGR::ShowType().
|
inline |
|
inlinestatic |
Definition at line 86 of file io_mgr.h.
Referenced by IO_MGR::EnumFromStr(), IO_MGR::PluginFind(), IO_MGR::REGISTER_PLUGIN::REGISTER_PLUGIN(), and IO_MGR::ShowType().
|
inline |
Definition at line 97 of file io_mgr.h.
References IO_MGR::PLUGIN_REGISTRY::ENTRY::m_createFunc, IO_MGR::PLUGIN_REGISTRY::ENTRY::m_name, m_plugins, and IO_MGR::PLUGIN_REGISTRY::ENTRY::m_type.
Referenced by IO_MGR::REGISTER_PLUGIN::REGISTER_PLUGIN().
|
private |
Definition at line 126 of file io_mgr.h.
Referenced by AllPlugins(), Create(), and Register().