10 #include <AtomsCore/Globals.h>
11 #include <Atoms/Variation/BaseVariationLoader.h>
24 typedef AtomsPtr<BaseVariationLoader> (*creatorFn)();
76 typedef std::map<std::string, creatorFn> FactoryMap;
82 FactoryMap m_factoryMap;
VariationLoader factory.
Definition: VariationLoaderFactory.h:21
bool isRegistered(const std::string &name)
Checks if an variation loader type with the given name is registered.
AtomsPtr< BaseVariationLoader > createVariationLoader(const std::string &typeName)
Creates an variation loader.
void registerVariationLoader(const std::string &name, creatorFn funct)
Registers a new variation loader type in the factory.
void deregisterVariationLoader(const std::string &name)
Deregisters an variation loader type from the factory.
std::vector< std::string > getRegisteredVariationLoader()
Gets all registered variation loader.
static VariationLoaderFactory & instance()
Singleton access.
Atoms namespace.
Definition: Agent.h:29