ConfigurableDb::_CfgDb Class Reference
List of all members.
Detailed Description
A singleton class holding informations about automatically generated
Configurables.
--> package holding that Configurable
--> library holding the components related to that Configurable
--> python module holding the Configurable
--> a dictionary of duplicates
Definition at line 18 of file ConfigurableDb.py.
Member Function Documentation
| def ConfigurableDb::_CfgDb::__init__ |
( |
|
self |
) |
|
| def ConfigurableDb::_CfgDb::add |
( |
|
self, |
|
|
|
configurable, |
|
|
|
package, |
|
|
|
module, |
|
|
|
lib | |
|
) |
| | |
Method to populate the Db.
It is called from the auto-generated Xyz_confDb.py files (genconf.cpp)
@param configurable: the name of the configurable being added
@param package: the name of the package which holds this Configurable
@param module: the name of the python module holding the Configurable
@param lib: the name of the library holding the component(s) (ie: the
C++ Gaudi component which is mapped by the Configurable)
Definition at line 37 of file ConfigurableDb.py.
00038 :
00039 """Method to populate the Db.
00040 It is called from the auto-generated Xyz_confDb.py files (genconf.cpp)
00041 @param configurable: the name of the configurable being added
00042 @param package: the name of the package which holds this Configurable
00043 @param module: the name of the python module holding the Configurable
00044 @param lib: the name of the library holding the component(s) (ie: the
00045 C++ Gaudi component which is mapped by the Configurable)
00046 """
00047 cfg = { 'package' : package,
00048 'module' : module,
00049 'lib' : lib }
00050 if self.has_key( configurable ):
00051
00052 if cfg['lib'] != self[configurable]['lib']:
00053 log.debug( "dup!! [%s] p=%s m=%s lib=%s",
00054 configurable, package, module, lib )
00055 if self._duplicates.has_key(configurable):
00056 self._duplicates[configurable] += [ cfg ]
00057 else:
00058 self._duplicates[configurable] = [ cfg ]
00059 pass
00060 else:
00061 log.debug( "added [%s] p=%s m=%s lib=%s",
00062 configurable, package, module, lib )
00063 self[configurable] = cfg
00064 pass
00065 return
| def ConfigurableDb::_CfgDb::duplicates |
( |
|
self |
) |
|
Member Data Documentation
The documentation for this class was generated from the following file:
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiKernel/python/GaudiKernel/ConfigurableDb.py