Gaudi Framework, version v21r4

Home   Generated: 7 Sep 2009

GaudiPython::Bindings::iJobOptSvc Class Reference

Inheritance diagram for GaudiPython::Bindings::iJobOptSvc:

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

Collaboration graph
[legend]

List of all members.


Detailed Description

Python-image of C++ class IJobOptionsSvc 

Definition at line 487 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 492 of file Bindings.py.

00492                                     :
00493     """ constructor """
00494     self.__dict__['_optsvc'] = InterfaceCast(gbl.IJobOptionsSvc)(svc)
00495     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 496 of file Bindings.py.

00496                                         :
00497     """
00498     Extract *ALL* properties of the given component
00499     Usage :
00500     >>> jos   = gaudi.optSvc() 
00501     >>> props = jos.getProperties( 'Name' )
00502     """
00503     props = self._optsvc.getProperties( component )
00504     prps = {}
00505     if not props : return  prps              # RETURN
00506     for p in props :
00507       prop  = p.name().upper()
00508       try :
00509         value = eval( p.value() , {} , {} )
00510       except: value = p.value()
00511       prps [ prop ] = value
00512       
00513     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 514 of file Bindings.py.

00514                                               :
00515     """
00516     Get a certain property of the certain component
00517     Usage:
00518     >>> jos  = ...
00519     >>> extServices = jos.getProperty( 'ApplicationMgr', 'ExtSvc' ) 
00520     """
00521     ## get all properties of the component 
00522     all = self.getProperties ( component )
00523     return all.get( name.upper() , None )     # RETURN 
00524 
00525 #----iEventSelector class------------------------------------------------------------------
class iEventSelector(iService):


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

Generated at Mon Sep 7 18:26:39 2009 for Gaudi Framework, version v21r4 by Doxygen version 1.5.6 written by Dimitri van Heesch, © 1997-2004