| # Gaudi Framework, version v25r0 |

Home |  | Generated: Mon Feb 17 2014

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

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

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Public Attributes | List of all members
GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy Class Reference
Inheritance diagram for GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy:
[legend]
Collaboration diagram for GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy:
[legend]

## Public Member Functions
def | __init__
def | checkType
def | convertDefaultToBeSet
def | convertValueToBeSet
Public Member Functions inherited from GaudiKernel.PropertyProxy.GaudiHandlePropertyProxyBase
def | __init__
def | __get__
def | __set__
def | isHandle
def | isConfig
def | getDefaultConfigurable
def | convertDefaultToBeSet
def | convertValueToBeSet
Public Member Functions inherited from GaudiKernel.PropertyProxy.PropertyProxy
def | __init__
def | setDefault
def | getDefault
def | fullPropertyName
def | __get__
def | __set__
def | __delete__

## Public Attributes
| arrayType

## Additional Inherited Members
Properties inherited from GaudiKernel.PropertyProxy.PropertyProxy
| default property( getDefault, setDefault )

## Detailed Description

Definition at line 311 of file PropertyProxy.py.

## Constructor & Destructor Documentation

def GaudiKernel.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, ...)

Definition at line 312 of file PropertyProxy.py.

312
313 def __init__( self, descr, docString, default ):
314 """<descr>: the real property in the object instance (from __slots__)
315 <confTypeName>: string indicating the (base) class of allowed Configurables to be assigned.
316 <handleType>: real python handle type (e.g. PublicToolHandle, PrivateToolHandle, ...)
317 """
318 GaudiHandlePropertyProxyBase.__init__( self, descr, docString, default, type(default).handleType, GaudiHandleArray )
319 self.arrayType = type(default)
320

## Member Function Documentation

def GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy.checkType | ( |  | self,
|  |  | obj,
|  |  | value
| ) |  |

Definition at line 321 of file PropertyProxy.py.

321
322 def checkType( self, obj, value ):
323 if not isinstance( value, list ) and not isinstance( value, self.arrayType ):
324 raise TypeError( "%s: Value %r is not a list nor a %s" % \
325 ( self.fullPropertyName(obj), value, self.arrayType.__name__ ) )
326

def GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy.convertDefaultToBeSet | ( |  | self,
|  |  | obj,
|  |  | default
| ) |  |

Definition at line 327 of file PropertyProxy.py.

327
328 def convertDefaultToBeSet( self, obj, default ):
329 self.checkType( obj, default )
330 newDefault = self.arrayType()
331 for d in default:
332 cd = GaudiHandlePropertyProxyBase.convertDefaultToBeSet( self, obj, d )
333 if cd: newDefault.append( cd )
334
335 return newDefault
336

def GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy.convertValueToBeSet | ( |  | self,
|  |  | obj,
|  |  | value
| ) |  |

Definition at line 337 of file PropertyProxy.py.

337
338 def convertValueToBeSet( self, obj, value ):
339 self.checkType( obj, value )
340 newValue = self.arrayType()
341 for v in value:
342 cv = GaudiHandlePropertyProxyBase.convertValueToBeSet( self, obj, v )
343 if cv: newValue.append( cv )
344
345 return newValue
346
347

## Member Data Documentation

GaudiKernel.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_v25r0/GaudiKernel/python/GaudiKernel/PropertyProxy.py