Gaudi Framework, version v23r0 |
Home | Generated: Mon Jan 30 2012 |
Public Member Functions | |
def | __init__ |
constructor | |
def | getProperties |
def | getProperty |
Python-image of C++ class IJobOptionsSvc
Definition at line 573 of file Bindings.py.
def GaudiPython::Bindings::iJobOptSvc::__init__ | ( | self, | |
name, | |||
svc | |||
) |
constructor
constructor
Reimplemented from GaudiPython::Bindings::iService.
Definition at line 578 of file Bindings.py.
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 582 of file Bindings.py.
00583 : 00584 """ 00585 Extract *ALL* properties of the given component 00586 Usage : 00587 >>> jos = gaudi.optSvc() 00588 >>> props = jos.getProperties( 'Name' ) 00589 """ 00590 props = self._optsvc.getProperties( component ) 00591 prps = {} 00592 if not props : return prps # RETURN 00593 for p in props : 00594 prop = p.name().upper() 00595 try : 00596 value = eval( p.value() , {} , {} ) 00597 except: value = p.value() 00598 prps [ prop ] = value 00599 return prps # RETURN
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 600 of file Bindings.py.
00601 : 00602 """ 00603 Get a certain property of the certain component 00604 Usage: 00605 >>> jos = ... 00606 >>> extServices = jos.getProperty( 'ApplicationMgr', 'ExtSvc' ) 00607 """ 00608 ## get all properties of the component 00609 all = self.getProperties ( component ) 00610 return all.get( name.upper() , None ) # RETURN 00611 #----iEventSelector class------------------------------------------------------------------