|
Gaudi Framework, version v25r2 |
| Home | Generated: Wed Jun 4 2014 |
In-memory database of the loaded factories. More...
#include <PluginServiceDetails.h>

Classes | |
| struct | FactoryInfo |
Public Types | |
| typedef std::string | KeyType |
| typedef std::map< KeyType, std::string > | Properties |
| Type used for the properties implementation. | |
| typedef std::map< KeyType, FactoryInfo > | FactoryMap |
| Type used for the database implementation. | |
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. | |
| void * | get (const std::string &id, const std::string &type) const |
| Retrieve the factory for the given id. | |
| const FactoryInfo & | getInfo (const std::string &id) const |
| Retrieve the FactoryInfo object for an id. | |
| 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.) | |
| std::set< KeyType > | loadedFactories () const |
| Return a list of all the known and loaded factories. | |
| const FactoryMap & | factories () const |
| Return the known factories (loading the list if not yet done). | |
Static Public Member Functions | |
| static Registry & | instance () |
| Retrieve the singleton instance of Registry. | |
Private Member Functions | |
| Registry () | |
| Private constructor for the singleton pattern. | |
| Registry (const Registry &) | |
| Private copy constructor for the singleton pattern. | |
| 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. | |
| FactoryMap & | factories () |
| Return the known factories (loading the list if not yet done). | |
| void | initialize () |
| Initialize the registry loading the list of factories from the .component files in the library search path. | |
Private Attributes | |
| bool | m_initialized |
| Flag recording if the registry has been initialized or not. | |
| FactoryMap | m_factories |
| Internal storage for factories. | |
In-memory database of the loaded factories.
Definition at line 116 of file PluginServiceDetails.h.
| typedef std::map<KeyType, FactoryInfo> Gaudi::PluginService::Details::Registry::FactoryMap |
Type used for the database implementation.
Definition at line 145 of file PluginServiceDetails.h.
| typedef std::string Gaudi::PluginService::Details::Registry::KeyType |
Definition at line 118 of file PluginServiceDetails.h.
| typedef std::map<KeyType, std::string> Gaudi::PluginService::Details::Registry::Properties |
Type used for the properties implementation.
Definition at line 121 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 129 of file PluginService.cpp.
|
inlineprivate |
Private copy constructor for the singleton pattern.
Definition at line 191 of file PluginServiceDetails.h.
|
inline |
Add a factory to the database.
Definition at line 152 of file PluginServiceDetails.h.
|
private |
Add a factory to the database.
Definition at line 225 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.)
Definition at line 303 of file PluginService.cpp.
|
inline |
Return the known factories (loading the list if not yet done).
Definition at line 178 of file PluginServiceDetails.h.
|
inlineprivate |
Return the known factories (loading the list if not yet done).
Definition at line 201 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.
Definition at line 257 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 290 of file PluginService.cpp.
|
private |
Initialize the registry loading the list of factories from the .component files in the library search path.
Definition at line 131 of file PluginService.cpp.
|
static |
Retrieve the singleton instance of Registry.
Definition at line 123 of file PluginService.cpp.
| std::set< Registry::KeyType > Gaudi::PluginService::Details::Registry::loadedFactories | ( | ) | const |
Return a list of all the known and loaded factories.
Definition at line 316 of file PluginService.cpp.
|
private |
Internal storage for factories.
Definition at line 214 of file PluginServiceDetails.h.
|
private |
Flag recording if the registry has been initialized or not.
Definition at line 211 of file PluginServiceDetails.h.