14 #ifndef FLASHALGOFACTORY_H 
   15 #define FLASHALGOFACTORY_H 
   57         std::cerr << 
"Found no registered class " << name << std::endl;
 
   60       auto ptr = (*iter).second->create(instance_name);
 
virtual ~FlashAlgoFactoryBase()
Default dtor (virtual) 
FlashAlgoBase * create(const std::string name, const std::string instance_name)
Factory creation method (should be called by clients, possibly you!) 
BEGIN_PROLOG could also be cerr
void add_factory(const std::string name, pmtana::FlashAlgoFactoryBase *factory)
Factory registration method (should be called by global factory instance in algorithm header) ...
Factory class for instantiating flash algorithm instance. 
virtual FlashAlgoBase * create(const std::string instance_name)=0
Abstract constructor method. 
std::map< std::string, pmtana::FlashAlgoFactoryBase * > _factory_map
Static factory container. 
static FlashAlgoFactory * _me
Static self. 
FlashAlgoFactoryBase()
Default ctor. 
FlashAlgoFactory()
Default ctor, shouldn't be used. 
~FlashAlgoFactory()
Default dtor.