| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Private Attributes | Static Private Attributes

# ConfigurableDb::_CfgDb Class Reference

List of all members.

## Public Member Functions
def | __init__
def | add
def | duplicates
## Private Attributes
| _duplicates
## Static Private Attributes
dictionary | __slots__

## 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.

## Constructor & Destructor Documentation

def ConfigurableDb::_CfgDb::__init__ | ( |  | self ) |

Definition at line 32 of file ConfigurableDb.py.

    00033                       :
    00034         object.__init__(self)
    00035         self._duplicates = {}
    00036         return

## Member Function Documentation

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             ## check if it comes from the same library...
    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 ) |

Definition at line 66 of file ConfigurableDb.py.

    00067                         :
    00068         return self._duplicates

## Member Data Documentation

dictionary ConfigurableDb::_CfgDb::__slots__`[static, private]`

Initial value:

    {
            '_duplicates' : { },
            }

Definition at line 28 of file ConfigurableDb.py.

ConfigurableDb::_CfgDb::_duplicates`[private]`

Definition at line 32 of file ConfigurableDb.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/GaudiKernel/python/GaudiKernel/ConfigurableDb.py

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines