KiCad PCB EDA Suite
IO_MGR::REGISTER_PLUGIN Struct Reference

Register a plugin. More...

#include <io_mgr.h>

Public Member Functions

 REGISTER_PLUGIN (PCB_FILE_T aType, const wxString &aName, std::function< PLUGIN *(void)> aCreateFunc)
 

Detailed Description

Register a plugin.

Declare as a static variable in an anonymous namespace.

Parameters
aTypetype of the plugin
aNamename of the file format
aCreateFuncfunction that creates a new object for the plugin.

Definition at line 138 of file io_mgr.h.

Constructor & Destructor Documentation

◆ REGISTER_PLUGIN()

IO_MGR::REGISTER_PLUGIN::REGISTER_PLUGIN ( PCB_FILE_T  aType,
const wxString &  aName,
std::function< PLUGIN *(void)>  aCreateFunc 
)
inline

Definition at line 140 of file io_mgr.h.

142  {
143  PLUGIN_REGISTRY::Instance()->Register( aType, aName, aCreateFunc );
144  }
static PLUGIN_REGISTRY * Instance()
Definition: io_mgr.h:86
void Register(PCB_FILE_T aType, const wxString &aName, std::function< PLUGIN *(void)> aCreateFunc)
Definition: io_mgr.h:97

References IO_MGR::PLUGIN_REGISTRY::Instance(), and IO_MGR::PLUGIN_REGISTRY::Register().


The documentation for this struct was generated from the following file: