| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- Class List
- Class Index
- Class Hierarchy
- Class Members

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | List of all members
GaudiPython.Bindings.iJobOptSvc Class Reference
Inheritance diagram for GaudiPython.Bindings.iJobOptSvc:
[legend]
Collaboration diagram for GaudiPython.Bindings.iJobOptSvc:
[legend]

## Public Member Functions
def | __init__
| constructor
def | getProperties
def | getProperty
Public Member Functions inherited from GaudiPython.Bindings.iService
def | __init__
def | retrieveInterface
def | isValid
Public Member Functions inherited from GaudiPython.Bindings.iProperty
def | __init__
def | getInterface
def | retrieveInterface
def | __call_interface_method__
def | __setattr__
def | __getattr__
def | properties
def | name

## Additional Inherited Members
Static Public Attributes inherited from GaudiPython.Bindings.iService
tuple | initialize lambdaself:self.__call_interface_method__("_isvc","initialize")
tuple | start lambdaself:self.__call_interface_method__("_isvc","start")
tuple | stop lambdaself:self.__call_interface_method__("_isvc","stop")
tuple | finalize lambdaself:self.__call_interface_method__("_isvc","finalize")
tuple | reinitialize lambdaself:self.__call_interface_method__("_isvc","reinitialize")
tuple | restart lambdaself:self.__call_interface_method__("_isvc","restart")

## Detailed Description

    Python-image of C++ class IJobOptionsSvc

Definition at line 600 of file Bindings.py.

## Constructor & Destructor Documentation

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

constructor

    constructor

Definition at line 605 of file Bindings.py.

605
606 def __init__( self , name , svc ) :
607 """ constructor """
608 self.__dict__['_optsvc'] = InterfaceCast(gbl.IJobOptionsSvc)(svc)
return iService.__init__( self , name , svc )

## Member Function Documentation

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 609 of file Bindings.py.

609
610 def getProperties( self , component ) :
611 """
612 Extract *ALL* properties of the given component
613 Usage :
614 >>> jos = gaudi.optSvc()
615 >>> props = jos.getProperties( 'Name' )
616 """
617 props = self._optsvc.getProperties( component )
618 prps = {}
619 if not props : return prps # RETURN
620 for p in props :
621 prop = p.name().upper()
622 try :
623 value = eval( p.value() , {} , {} )
624 except: value = p.value()
625 prps [ prop ] = value
626
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 627 of file Bindings.py.

627
628 def getProperty ( self , component , name ) :
629 """
630 Get a certain property of the certain component
631 Usage:
632 >>> jos = ...
633 >>> extServices = jos.getProperty( 'ApplicationMgr', 'ExtSvc' )
634 """
635 ## get all properties of the component
636 all = self.getProperties ( component )
637 return all.get( name.upper() , None ) # RETURN
638
#----iEventSelector class------------------------------------------------------------------

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

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