| # Gaudi Framework, version v21r7 |

Home |  | Generated: 22 Jan 2010

# PropertyProxy::GaudiHandleArrayPropertyProxy Class Reference

Inheritance diagram for PropertyProxy::GaudiHandleArrayPropertyProxy:

[legend]
Collaboration diagram for PropertyProxy::GaudiHandleArrayPropertyProxy:

[legend]

List of all members.

## Public Member Functions
def | __init__
def | checkType
def | convertDefaultToBeSet
def | convertValueToBeSet
## Public Attributes
| arrayType

## Detailed Description

Definition at line 311 of file PropertyProxy.py.

## Member Function Documentation

def PropertyProxy::GaudiHandleArrayPropertyProxy::__init__ | ( |  | self,
|  |  | descr,
|  |  | docString,
|  |  | default |
| ) |  |  |

    <descr>: the real property in the object instance (from __slots__)
    <confTypeName>: string indicating the (base) class of allowed Configurables to be assigned.
    <handleType>: real python handle type (e.g. PublicToolHandle, PrivateToolHandle, ...)

Reimplemented from PropertyProxy::PropertyProxy.

Definition at line 312 of file PropertyProxy.py.

    00312                                                    :
    00313         """<descr>: the real property in the object instance (from __slots__)
    00314         <confTypeName>: string indicating the (base) class of allowed Configurables to be assigned.
    00315         <handleType>: real python handle type (e.g. PublicToolHandle, PrivateToolHandle, ...)
    00316         """
    00317         GaudiHandlePropertyProxyBase.__init__( self, descr, docString, default, type(default).handleType, GaudiHandleArray )
    00318         self.arrayType = type(default)
    00319
    00320
        def checkType( self, obj, value ):

def PropertyProxy::GaudiHandleArrayPropertyProxy::checkType | ( |  | self,
|  |  | obj,
|  |  | value |
| ) |  |  |

Definition at line 321 of file PropertyProxy.py.

    00321                                      :
    00322         if not isinstance( value, list ) and not isinstance( value, self.arrayType ):
    00323             raise TypeError( "%s: Value %r is not a list nor a %s" % \
    00324                              ( self.fullPropertyName(obj), value, self.arrayType.__name__ ) )
    00325
    00326
        def convertDefaultToBeSet( self, obj, default ):

def PropertyProxy::GaudiHandleArrayPropertyProxy::convertDefaultToBeSet | ( |  | self,
|  |  | obj,
|  |  | default |
| ) |  |  |

Reimplemented from PropertyProxy::GaudiHandlePropertyProxyBase.

Definition at line 327 of file PropertyProxy.py.

    00327                                                    :
    00328         self.checkType( obj, default )
    00329         newDefault = self.arrayType()
    00330         for d in default:
    00331             cd = GaudiHandlePropertyProxyBase.convertDefaultToBeSet( self, obj, d )
    00332             if cd: newDefault.append( cd )
    00333
    00334         return newDefault
    00335
    00336
        def convertValueToBeSet( self, obj, value ):

def PropertyProxy::GaudiHandleArrayPropertyProxy::convertValueToBeSet | ( |  | self,
|  |  | obj,
|  |  | value |
| ) |  |  |

Reimplemented from PropertyProxy::GaudiHandlePropertyProxyBase.

Definition at line 337 of file PropertyProxy.py.

    00337                                                :
    00338         self.checkType( obj, value )
    00339         newValue = self.arrayType()
    00340         for v in value:
    00341             cv = GaudiHandlePropertyProxyBase.convertValueToBeSet( self, obj, v )
    00342             if cv: newValue.append( cv )
    00343
    00344         return newValue
    00345
    00346
    00347
    def PropertyProxyFactory( descr, doc, default ):

## Member Data Documentation

PropertyProxy::GaudiHandleArrayPropertyProxy::arrayType

Definition at line 318 of file PropertyProxy.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v21r7/GaudiKernel/python/GaudiKernel/PropertyProxy.py