9 #include <geometry/CreatorManager.h>
10 #include <framework/logging/Logger.h>
11 #include <framework/utilities/FileSystem.h>
26 void CreatorManager::registerCreatorFactory(
const std::string& name,
CreatorFactory* factory)
28 getInstance().m_creatorFactories[name] = factory;
31 CreatorBase* CreatorManager::getCreator(
const string& name,
const string& library)
33 if (!library.empty()) {
34 FileSystem::loadLibrary(library,
false);
40 B2ERROR(
"Could not find a geometry creator named " << name);
Pure virtual base class for all geometry creators.
Class to manage all creators and provide factory access.
std::map< std::string, CreatorFactory * > m_creatorFactories
Static map to hold all registered factories.
Common code concerning the geometry representation of the detector.
Abstract base class for different kinds of events.
Very simple class to provide an easy way to register creators with the CreatorManager.