| The Gaudi Framework v27r1

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

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

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__ (self, name, svc)
| constructor More...
def | getProperties (self, component)
def | getProperty (self, component, name)
Public Member Functions inherited from GaudiPython.Bindings.iService
def | __init__
def | retrieveInterface (self)
def | isValid (self)
Public Member Functions inherited from GaudiPython.Bindings.iProperty
def | __init__
def | getInterface (self)
def | retrieveInterface (self)
def | __call_interface_method__ (self, ifname, method, args)
def | __setattr__ (self, name, value)
def | __getattr__ (self, name)
def | properties (self)
def | name (self)

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

## Constructor & Destructor Documentation

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

constructor

    constructor

Definition at line 604 of file Bindings.py.

604 def __init__( self , name , svc ) :
605 """ constructor """
606 self.__dict__['_optsvc'] = InterfaceCast(gbl.IJobOptionsSvc)(svc)
607 return iService.__init__( self , name , svc )
GaudiPython.Bindings.InterfaceCast
Definition: Bindings.py:77
GaudiPython.Bindings.iJobOptSvc.__init__
def __init__(self, name, svc)
constructor
Definition: Bindings.py:604

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

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

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

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

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

- GaudiPython/python/GaudiPython/Bindings.py