| 
    KiCad PCB EDA Suite
    
   | 
 
A class to handle the registration of utility programs. More...
#include <utility_registry.h>
Public Types | |
| using | PLUGIN_MAP = std::map<std::string, KI_TEST::UTILITY_PROGRAM> | 
Static Public Member Functions | |
| static bool | Register (const KI_TEST::UTILITY_PROGRAM &aProgInfo) | 
| Register a utility program factory function against an ID string.   | |
| static PLUGIN_MAP & | GetInfoMap () | 
| Accessor for the static registry map.   | |
A class to handle the registration of utility programs.
Definition at line 15 of file utility_registry.h.
| using UTILITY_REGISTRY::PLUGIN_MAP = std::map<std::string, KI_TEST::UTILITY_PROGRAM> | 
Definition at line 18 of file utility_registry.h.
      
  | 
  inlinestatic | 
Accessor for the static registry map.
This is needed to prevent the Static Init Order Fiasco that might occur if we just accessed a static class member.
Definition at line 48 of file utility_registry.h.
Referenced by KI_TEST::COMBINED_UTILITY::findSubUtility(), Register(), and KI_TEST::COMBINED_UTILITY::showSubUtilityList().
      
  | 
  inlinestatic | 
Register a utility program factory function against an ID string.
This will be used to create the required utility program if needed.
| aName | the name of the utility program | 
| aFactory | the factory function that will construct the plugin | 
Definition at line 29 of file utility_registry.h.
References GetInfoMap(), and KI_TEST::UTILITY_PROGRAM::m_name.