![]() |
The Gaudi Framework
v26r3
|
In-memory database of the loaded factories. More...

Classes | |
| struct | FactoryInfo |
Public Types | |
| typedef std::string | KeyType |
| typedef std::map< KeyType, std::string > | Properties |
| Type used for the properties implementation. More... | |
| typedef std::map< KeyType, FactoryInfo > | FactoryMap |
| Type used for the database implementation. More... | |
| typedef std::string | KeyType |
| typedef std::map< KeyType, std::string > | Properties |
| Type used for the properties implementation. More... | |
| typedef std::map< KeyType, FactoryInfo > | FactoryMap |
| Type used for the database implementation. More... | |
Public Member Functions | |
| template<typename F , typename T , typename I > | |
| FactoryInfo & | add (const I &id, typename F::FuncType ptr) |
| Add a factory to the database. More... | |
| void * | get (const std::string &id, const std::string &type) const |
| Retrieve the factory for the given id. More... | |
| const FactoryInfo & | getInfo (const std::string &id) const |
| Retrieve the FactoryInfo object for an id. More... | |
| Registry & | addProperty (const std::string &id, const std::string &k, const std::string &v) |
| Add a property to an already existing FactoryInfo object (via its id.) More... | |
| std::set< KeyType > | loadedFactories () const |
| Return a list of all the known and loaded factories. More... | |
| const FactoryMap & | factories () const |
| Return the known factories (loading the list if not yet done). More... | |
| template<typename F , typename T , typename I > | |
| FactoryInfo & | add (const I &id, typename F::FuncType ptr) |
| Add a factory to the database. More... | |
| void * | get (const std::string &id, const std::string &type) const |
| Retrieve the factory for the given id. More... | |
| const FactoryInfo & | getInfo (const std::string &id) const |
| Retrieve the FactoryInfo object for an id. More... | |
| Registry & | addProperty (const std::string &id, const std::string &k, const std::string &v) |
| Add a property to an already existing FactoryInfo object (via its id.) More... | |
| std::set< KeyType > | loadedFactories () const |
| Return a list of all the known and loaded factories. More... | |
| const FactoryMap & | factories () const |
| Return the known factories (loading the list if not yet done). More... | |
Static Public Member Functions | |
| static Registry & | instance () |
| Retrieve the singleton instance of Registry. More... | |
| static Registry & | instance () |
| Retrieve the singleton instance of Registry. More... | |
Private Member Functions | |
| Registry () | |
| Private constructor for the singleton pattern. More... | |
| Registry (const Registry &) | |
| Private copy constructor for the singleton pattern. More... | |
| FactoryInfo & | add (const std::string &id, void *factory, const std::string &type, const std::string &rtype, const std::string &className, const Properties &props=Properties()) |
| Add a factory to the database. More... | |
| FactoryMap & | factories () |
| Return the known factories (loading the list if not yet done). More... | |
| void | initialize () |
| Initialize the registry loading the list of factories from the .component files in the library search path. More... | |
| Registry () | |
| Private constructor for the singleton pattern. More... | |
| Registry (const Registry &) | |
| Private copy constructor for the singleton pattern. More... | |
| FactoryInfo & | add (const std::string &id, void *factory, const std::string &type, const std::string &rtype, const std::string &className, const Properties &props=Properties()) |
| Add a factory to the database. More... | |
| FactoryMap & | factories () |
| Return the known factories (loading the list if not yet done). More... | |
| void | initialize () |
| Initialize the registry loading the list of factories from the .component files in the library search path. More... | |
Private Attributes | |
| bool | m_initialized |
| Flag recording if the registry has been initialized or not. More... | |
| FactoryMap | m_factories |
| Internal storage for factories. More... | |
In-memory database of the loaded factories.
Definition at line 99 of file PluginServiceDetails.h.
| typedef std::map<KeyType, FactoryInfo> Gaudi::PluginService::Details::Registry::FactoryMap |
Type used for the database implementation.
Definition at line 128 of file PluginServiceDetails.h.
| typedef std::map<KeyType, FactoryInfo> Gaudi::PluginService::Details::Registry::FactoryMap |
Type used for the database implementation.
Definition at line 128 of file PluginServiceDetails.h.
| typedef std::string Gaudi::PluginService::Details::Registry::KeyType |
Definition at line 101 of file PluginServiceDetails.h.
| typedef std::string Gaudi::PluginService::Details::Registry::KeyType |
Definition at line 101 of file PluginServiceDetails.h.
| typedef std::map<KeyType, std::string> Gaudi::PluginService::Details::Registry::Properties |
Type used for the properties implementation.
Definition at line 104 of file PluginServiceDetails.h.
| typedef std::map<KeyType, std::string> Gaudi::PluginService::Details::Registry::Properties |
Type used for the properties implementation.
Definition at line 104 of file PluginServiceDetails.h.
|
private |
Private constructor for the singleton pattern.
At construction time, the internal database of known factories is filled with the name of the libraries containing them, using the ".components" files in the LD_LIBRARY_PATH.
Definition at line 142 of file PluginService.cpp.
|
inlineprivate |
Private copy constructor for the singleton pattern.
Definition at line 174 of file PluginServiceDetails.h.
|
private |
Private constructor for the singleton pattern.
At construction time, the internal database of known factories is filled with the name of the libraries containing them, using the ".components" files in the LD_LIBRARY_PATH.
|
inlineprivate |
Private copy constructor for the singleton pattern.
Definition at line 174 of file PluginServiceDetails.h.
|
inline |
Add a factory to the database.
Definition at line 135 of file PluginServiceDetails.h.
|
inline |
Add a factory to the database.
Definition at line 135 of file PluginServiceDetails.h.
|
private |
Add a factory to the database.
Definition at line 238 of file PluginService.cpp.
|
private |
Add a factory to the database.
| Registry & Gaudi::PluginService::Details::Registry::addProperty | ( | const std::string & | id, |
| const std::string & | k, | ||
| const std::string & | v | ||
| ) |
Add a property to an already existing FactoryInfo object (via its id.)
Definition at line 316 of file PluginService.cpp.
| Registry& Gaudi::PluginService::Details::Registry::addProperty | ( | const std::string & | id, |
| const std::string & | k, | ||
| const std::string & | v | ||
| ) |
Add a property to an already existing FactoryInfo object (via its id.)
|
inline |
Return the known factories (loading the list if not yet done).
Definition at line 161 of file PluginServiceDetails.h.
|
inline |
Return the known factories (loading the list if not yet done).
Definition at line 161 of file PluginServiceDetails.h.
|
inlineprivate |
Return the known factories (loading the list if not yet done).
Definition at line 184 of file PluginServiceDetails.h.
|
inlineprivate |
Return the known factories (loading the list if not yet done).
Definition at line 184 of file PluginServiceDetails.h.
| void* Gaudi::PluginService::Details::Registry::get | ( | const std::string & | id, |
| const std::string & | type | ||
| ) | const |
Retrieve the factory for the given id.
| void * Gaudi::PluginService::Details::Registry::get | ( | const std::string & | id, |
| const std::string & | type | ||
| ) | const |
Retrieve the factory for the given id.
Definition at line 270 of file PluginService.cpp.
| const Registry::FactoryInfo & Gaudi::PluginService::Details::Registry::getInfo | ( | const std::string & | id | ) | const |
Retrieve the FactoryInfo object for an id.
Definition at line 303 of file PluginService.cpp.
| const FactoryInfo& Gaudi::PluginService::Details::Registry::getInfo | ( | const std::string & | id | ) | const |
Retrieve the FactoryInfo object for an id.
|
private |
Initialize the registry loading the list of factories from the .component files in the library search path.
|
private |
Initialize the registry loading the list of factories from the .component files in the library search path.
Definition at line 144 of file PluginService.cpp.
|
static |
Retrieve the singleton instance of Registry.
Definition at line 136 of file PluginService.cpp.
|
static |
Retrieve the singleton instance of Registry.
| std::set< Registry::KeyType > Gaudi::PluginService::Details::Registry::loadedFactories | ( | ) | const |
Return a list of all the known and loaded factories.
Definition at line 329 of file PluginService.cpp.
| std::set<KeyType> Gaudi::PluginService::Details::Registry::loadedFactories | ( | ) | const |
Return a list of all the known and loaded factories.
|
private |
Internal storage for factories.
Definition at line 197 of file PluginServiceDetails.h.
|
private |
Flag recording if the registry has been initialized or not.
Definition at line 194 of file PluginServiceDetails.h.