| # Gaudi Framework, version v22r2 |

Home |  | Generated: Tue May 10 2011

Public Member Functions

# GaudiPython::Bindings::iJobOptSvc Class Reference

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

List of all members.

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

## Detailed Description

    Python-image of C++ class IJobOptionsSvc

Definition at line 572 of file Bindings.py.

## Constructor & Destructor Documentation

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

constructor

    constructor

Reimplemented from GaudiPython::Bindings::iService.

Definition at line 577 of file Bindings.py.

    00578                                       :
    00579         """ constructor """
    00580         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 581 of file Bindings.py.

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

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

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

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

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