 |
Belle II Software
release-05-01-25
|
11 #ifndef CREATORMANAGER_H
12 #define CREATORMANAGER_H
27 class CreatorManager {
Class to manage all creators and provide factory access.
CreatorManager()
singleton, hide constructor
void operator=(const CreatorManager &)=delete
singleton, hide assignment operator
static CreatorBase * getCreator(const std::string &name, const std::string &library="")
Return a new instance of a creator with the given name.
Abstract base class for different kinds of events.
static void registerCreatorFactory(const std::string &name, CreatorFactory *factory)
Register a new creator by providing a name and a pointer to a factory for this kind of creator.
std::map< std::string, CreatorFactory * > m_creatorFactories
Static map to hold all registered factories.
static CreatorManager & getInstance()
getter for the singleton instance
Pure virtual base class for all geometry creators.
Very simple class to provide an easy way to register creators with the CreatorManager.
CreatorBase * CreatorFactory()
Typedef for a factory function.