Pure virtual base class for all geometry creators.
Class to manage all creators and provide factory access.
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.
static CreatorBase * getCreator(const std::string &name, const std::string &library="")
Return a new instance of a creator with the given name.
void operator=(const CreatorManager &)=delete
singleton, hide assignment operator
std::map< std::string, CreatorFactory * > m_creatorFactories
Static map to hold all registered factories.
CreatorManager()
singleton, hide constructor
static CreatorManager & getInstance()
getter for the singleton instance
CreatorManager(const CreatorManager &)=delete
singleton, hide copy constructor
CreatorBase * CreatorFactory()
Typedef for a factory function.
Abstract base class for different kinds of events.
Very simple class to provide an easy way to register creators with the CreatorManager.