ExtensionManagerFactory.h Source File#
ExtensionManagerFactory.h
Go to the documentation of this file.
File contains the FactoryBase class declarations.
A factory class for creating ExtensionManager objects.
Definition ExtensionManagerFactory.h:19
static ExtensionManagerFactory * s_factory
static member of the single factory instance
Definition ExtensionManagerFactory.h:35
void deleteFactory() override
Delete the static instance of this factory.
Definition ExtensionManagerFactory.cpp:25
static shared_ptr< ExtensionManager > build(const string &extensionType)
Create a new ExtensionManager.
Definition ExtensionManagerFactory.h:22
static ExtensionManagerFactory & factory()
Static function that returns the static instance of the factory, creating it if necessary.
Definition ExtensionManagerFactory.cpp:16
ExtensionManagerFactory()=default
Private constructor prevents direct usage.
static std::mutex s_mutex
Decl for locking mutex for thermo factory singleton.
Definition ExtensionManagerFactory.h:41
Factory class that supports registering functions to create objects.
Definition FactoryBase.h:69
ExtensionManager * create(const string &name, Args... args)
Create an object using the object construction function corresponding to "name" and the provided cons...
Definition FactoryBase.h:75
Generated by 1.9.7