| # Gaudi Framework, version v21r6 |

Home |  | Generated: 11 Nov 2009

# GaudiPython::Bindings::iJobOptSvc Class Reference

Inheritance diagram for GaudiPython::Bindings::iJobOptSvc:

[legend]
Collaboration diagram for GaudiPython::Bindings::iJobOptSvc:

[legend]

List of all members.

## Detailed Description

    Python-image of C++ class IJobOptionsSvc

Definition at line 572 of file Bindings.py.

## Public Member Functions
def | __init__
| constructor
def | getProperties
def | getProperty

## Member Function Documentation

def GaudiPython::Bindings::iJobOptSvc::__init__ | ( |  | self,
|  |  | name,
|  |  | svc |
| ) |  |  |

constructor

    constructor

Reimplemented from GaudiPython::Bindings::iService.

Definition at line 577 of file Bindings.py.

    00577                                       :
    00578         """ constructor """
    00579         self.__dict__['_optsvc'] = InterfaceCast(gbl.IJobOptionsSvc)(svc)
    00580         return iService.__init__( self , name , svc )
        def getProperties( self , component ) :

def GaudiPython::Bindings::iJobOptSvc::getProperties | ( |  | self,
|  |  | component |
| ) |  |  |

    Extract *ALL* properties of the given component
    Usage :
    >>> jos   = gaudi.optSvc()
    >>> props = jos.getProperties( 'Name' )

Definition at line 581 of file Bindings.py.

    00581                                           :
    00582         """
    00583         Extract *ALL* properties of the given component
    00584         Usage :
    00585         >>> jos   = gaudi.optSvc()
    00586         >>> props = jos.getProperties( 'Name' )
    00587         """
    00588         props = self._optsvc.getProperties( component )
    00589         prps = {}
    00590         if not props : return  prps              # RETURN
    00591         for p in props :
    00592             prop  = p.name().upper()
    00593             try :
    00594                 value = eval( p.value() , {} , {} )
    00595             except: value = p.value()
    00596             prps [ prop ] = value
    00597
    00598         return prps                               # RETURN
        def getProperty ( self , component , name ) :

def GaudiPython::Bindings::iJobOptSvc::getProperty | ( |  | self,
|  |  | component,
|  |  | name |
| ) |  |  |

    Get a certain property of the certain component
    Usage:
    >>> jos  = ...
    >>> extServices = jos.getProperty( 'ApplicationMgr', 'ExtSvc' )

Definition at line 599 of file Bindings.py.

    00599                                                 :
    00600         """
    00601         Get a certain property of the certain component
    00602         Usage:
    00603         >>> jos  = ...
    00604         >>> extServices = jos.getProperty( 'ApplicationMgr', 'ExtSvc' )
    00605         """
    00606         ## get all properties of the component
    00607         all = self.getProperties ( component )
    00608         return all.get( name.upper() , None )     # RETURN
    00609
    00610 #----iEventSelector class------------------------------------------------------------------
    class iEventSelector(iService):

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r6/GaudiPython/python/GaudiPython/Bindings.py