| The Gaudi Framework v32r1 (f65d50dc)

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__ (self, descr, docString, default)
def | checkType (self, obj, value)
def | convertDefaultToBeSet (self, obj, default)
def | convertValueToBeSet (self, obj, value)
Public Member Functions inherited from GaudiKernel.PropertyProxy.GaudiHandlePropertyProxyBase
def | __init__ (self, descr, docString, default, handleType, allowedType)
def | __get__ (self, obj, type=None)
def | __set__ (self, obj, value)
def | isHandle (self, value)
def | isConfig (self, value)
def | getDefaultConfigurable (self, typeAndName, requester)
Public Member Functions inherited from GaudiKernel.PropertyProxy.PropertyProxy
def | setDefault (self, value)
def | getDefault (self)
def | fullPropertyName (self, obj)
def | __delete__ (self, obj)

## Public Attributes
| arrayType
Public Attributes inherited from GaudiKernel.PropertyProxy.PropertyProxy
| history
| descr
| deprecated

## Additional Inherited Members
Static Public Attributes inherited from GaudiKernel.PropertyProxy.PropertyProxy
| proptype = type(self.default)
| allowcompat = True
bool | allowcompat = True
| value = _isCompatible(proptype, value)
def | oldvec = self.descr.__get__(obj, type)
| tpo = type(oldvec[0])
Properties inherited from GaudiKernel.PropertyProxy.PropertyProxy
| default = property(getDefault, setDefault)

## Detailed Description

Definition at line 338 of file PropertyProxy.py.

## Constructor & Destructor Documentation

## ◆ __init__()

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

Reimplemented from GaudiKernel.PropertyProxy.PropertyProxy.

Definition at line 339 of file PropertyProxy.py.

339 def __init__(self, descr, docString, default):
340 """<descr>: the real property in the object instance (from __slots__)
341 <confTypeName>: string indicating the (base) class of allowed Configurables to be assigned.
342 <handleType>: real python handle type (e.g. PublicToolHandle, PrivateToolHandle, ...)
343 """
344 GaudiHandlePropertyProxyBase.__init__(self, descr, docString, default,
345 type(default).handleType,
346 GaudiHandleArray)
347 self.arrayType = type(default)
348
gaudirun.type
type
Definition: gaudirun.py:142

## Member Function Documentation

## ◆ checkType()

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

Definition at line 349 of file PropertyProxy.py.

349 def checkType(self, obj, value):
350 if not isinstance(value, list) and not isinstance(
351 value, self.arrayType):
352 raise TypeError(
353 "%s: Value %r is not a list nor a %s" %
354 (self.fullPropertyName(obj), value, self.arrayType.__name__))
355

## ◆ convertDefaultToBeSet()

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

Reimplemented from GaudiKernel.PropertyProxy.GaudiHandlePropertyProxyBase.

Definition at line 356 of file PropertyProxy.py.

356 def convertDefaultToBeSet(self, obj, default):
357 self.checkType(obj, default)
358 newDefault = self.arrayType()
359 for d in default:
360 cd = GaudiHandlePropertyProxyBase.convertDefaultToBeSet(
361 self, obj, d)
362 if cd:
363 newDefault.append(cd)
364
365 return newDefault
366

## ◆ convertValueToBeSet()

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

Reimplemented from GaudiKernel.PropertyProxy.GaudiHandlePropertyProxyBase.

Definition at line 367 of file PropertyProxy.py.

367 def convertValueToBeSet(self, obj, value):
368 self.checkType(obj, value)
369 newValue = self.arrayType()
370 for v in value:
371 cv = GaudiHandlePropertyProxyBase.convertValueToBeSet(self, obj, v)
372 if cv:
373 newValue.append(cv)
374
375 return newValue
376
377

## Member Data Documentation

## ◆ arrayType

GaudiKernel.PropertyProxy.GaudiHandleArrayPropertyProxy.arrayType

Definition at line 347 of file PropertyProxy.py.

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

- GaudiKernel/python/GaudiKernel/PropertyProxy.py