| The Gaudi Framework v32r1 (f65d50dc)

Public Member Functions | Public Attributes | List of all members
GaudiKernel.Configurable.PropertyReference Class Reference
Inheritance diagram for GaudiKernel.Configurable.PropertyReference:
[legend]
Collaboration diagram for GaudiKernel.Configurable.PropertyReference:
[legend]

## Public Member Functions
def | __init__ (self, propname)
def | __str__ (self)
def | __resolve__ (self)
def | getFullName (self)

## Public Attributes
| name

## Detailed Description

Definition at line 68 of file Configurable.py.

## Constructor & Destructor Documentation

## ◆ __init__()

def GaudiKernel.Configurable.PropertyReference.__init__ | ( |  | self,
|  |  | propname
| ) |  |

Definition at line 69 of file Configurable.py.

69 def __init__(self, propname):
70 self.name = propname
71

## Member Function Documentation

## ◆ __resolve__()

def GaudiKernel.Configurable.PropertyReference.__resolve__ | ( |  | self | ) |

Definition at line 75 of file Configurable.py.

75 def __resolve__(self):
76 # late binding for property references
77 retval = None
78 refname, refprop = self.name.rsplit('.', 1)
79 if refname in Configurable.allConfigurables:
80 conf = Configurable.allConfigurables[refname]
81 retval = getattr(conf, refprop)
82 if hasattr(retval, "getFullName"):
83 retval = retval.getFullName()
84 else:
85 raise NameError(
86 "name '%s' not found resolving '%s'" % (refname, self))
87 return retval
88

## ◆ __str__()

def GaudiKernel.Configurable.PropertyReference.__str__ | ( |  | self | ) |

Definition at line 72 of file Configurable.py.

72 def __str__(self):
73 return "@%s" % self.name
74
GaudiPython.HistoUtils.__str__
__str__
Definition: HistoUtils.py:510

## ◆ getFullName()

def GaudiKernel.Configurable.PropertyReference.getFullName | ( |  | self | ) |

    This function allow transparent integration with
    Configurable.getValuedProperties.

Definition at line 89 of file Configurable.py.

89 def getFullName(self):
90 """This function allow transparent integration with
91 Configurable.getValuedProperties.
92 """
93 try:
94 return self.__resolve__()
95 except NameError:
96 # ignore the error if we cannot resolve the name yet
97 return self
98 except AttributeError:
99 # ignore the error if we cannot resolve the attribute yet
100 return self
101
102
103 # base class for configurable Gaudi algorithms/services/algtools/etc. ======
104
105

## Member Data Documentation

## ◆ name

GaudiKernel.Configurable.PropertyReference.name

Definition at line 70 of file Configurable.py.

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

- GaudiKernel/python/GaudiKernel/Configurable.py