30 std::function<
JOB*()> createFunc;
47 if( registry.find( aName ) == registry.end() )
52 return registry[aName].createFunc();
61 static REGISTRY_MAP_T& getRegistry();
64#define REGISTER_JOB( job_name, title, face, T ) bool job_name##_entry = JOB_REGISTRY::Add( #job_name, \
static const REGISTRY_MAP_T & GetRegistry()
std::unordered_map< wxString, JOB_REGISTRY_ENTRY > REGISTRY_MAP_T
static T * CreateInstance(const wxString &aName)
An simple container class that lets us dispatch output jobs to kifaces.
FACE_T
Known KIFACE implementations.