| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Public Attributes

# 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.

## Constructor & Destructor 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.

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

## Member Function Documentation

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

Definition at line 321 of file PropertyProxy.py.

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

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

Reimplemented from PropertyProxy::GaudiHandlePropertyProxyBase.

Definition at line 327 of file PropertyProxy.py.

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

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

Reimplemented from PropertyProxy::GaudiHandlePropertyProxyBase.

Definition at line 337 of file PropertyProxy.py.

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

## Member Data Documentation

PropertyProxy::GaudiHandleArrayPropertyProxy::arrayType

Definition at line 315 of file PropertyProxy.py.

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

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

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