| 
    KiCad PCB EDA Suite
    
   | 
 
A factory which returns an instance of a PCB_GENERATOR. More...
#include <generators_mgr.h>
Classes | |
| struct | ENTRY | 
| struct | REGISTER | 
| Static helper to register a generator.  More... | |
Public Member Functions | |
| void | Register (const wxString &aTypeStr, const wxString &aName, std::function< PCB_GENERATOR *(void)> aCreateFunc) | 
| Associate a type string to display name and create function.   | |
| PCB_GENERATOR * | CreateFromType (const wxString &aTypeStr) | 
Static Public Member Functions | |
| static GENERATORS_MGR & | Instance () | 
Private Attributes | |
| std::map< wxString, ENTRY > | m_registry | 
A factory which returns an instance of a PCB_GENERATOR.
Definition at line 44 of file generators_mgr.h.
| PCB_GENERATOR * GENERATORS_MGR::CreateFromType | ( | const wxString & | aTypeStr | ) | 
Definition at line 50 of file generators_mgr.cpp.
References GENERATORS_MGR::ENTRY::m_createFunc, and m_registry.
Referenced by PCB_IO_KICAD_SEXPR_PARSER::resolveGroups().
      
  | 
  static | 
Definition at line 28 of file generators_mgr.cpp.
Referenced by GENERATORS_MGR::REGISTER< T >::REGISTER(), REGISTER_LEGACY_TUNING_PATTERN< T >::REGISTER_LEGACY_TUNING_PATTERN(), and PCB_IO_KICAD_SEXPR_PARSER::resolveGroups().
| void GENERATORS_MGR::Register | ( | const wxString & | aTypeStr, | 
| const wxString & | aName, | ||
| std::function< PCB_GENERATOR *(void)> | aCreateFunc ) | 
Associate a type string to display name and create function.
| aTypeStr | is the type identifier string. | 
| aName | is the display name. | 
| aCreateFunc | is the create function. | 
Definition at line 35 of file generators_mgr.cpp.
References GENERATORS_MGR::ENTRY::m_createFunc, GENERATORS_MGR::ENTRY::m_displayName, m_registry, and GENERATORS_MGR::ENTRY::m_type.
Referenced by GENERATORS_MGR::REGISTER< T >::REGISTER(), and REGISTER_LEGACY_TUNING_PATTERN< T >::REGISTER_LEGACY_TUNING_PATTERN().
      
  | 
  private | 
Definition at line 86 of file generators_mgr.h.
Referenced by CreateFromType(), and Register().