fw4spl
fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER > Class Template Reference

FactoryRegistryBase is a class used to store factories. More...

#include <FactoryRegistry.hpp>

+ Inheritance diagram for fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER >:
+ Collaboration diagram for fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER >:

Public Types

typedef FACTORY_SIGNATURE FactorySignatureType
 
typedef KEY_TYPE KeyType
 
typedef FACTORY_HOLDER FactoryType
 
typedef std::map< KeyType, FactoryType > RegistryType
 
typedef std::vector< KeyType > KeyVectorType
 

Public Member Functions

void addFactory (const KeyType &name, FactoryType factory)
 Add a factory to the registry.
 
virtual FactoryType getFactory (const KeyType &key) const
 returns the factory associated with the key.
 
virtual KeyVectorType getFactoryKeys () const
 returns the registered factory keys.
 

Protected Attributes

RegistryType m_registry
 
mutable::fwCore::mt::ReadWriteMutex m_mutex
 

Detailed Description

template<typename FACTORY_SIGNATURE, typename KEY_TYPE = std::string, typename FACTORY_HOLDER = std::function< FACTORY_SIGNATURE >>
class fwCore::util::FactoryRegistryBase< FACTORY_SIGNATURE, KEY_TYPE, FACTORY_HOLDER >

FactoryRegistryBase is a class used to store factories.

Note
This class is thread safe.

Definition at line 28 of file FactoryRegistry.hpp.


The documentation for this class was generated from the following file: