| # 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.Configurable.PropertyReference Class Reference

Allow references to options as in old style. More...

Inheritance diagram for GaudiKernel.Configurable.PropertyReference:
[legend]
Collaboration diagram for GaudiKernel.Configurable.PropertyReference:
[legend]

## Public Member Functions
def | __init__
def | __repr__
def | __resolve__
def | getFullName

## Public Attributes
| name

## Detailed Description

Allow references to options as in old style.

Definition at line 56 of file Configurable.py.

## Constructor & Destructor Documentation

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

Definition at line 57 of file Configurable.py.

57
58 def __init__(self,propname):
self.name = propname

## Member Function Documentation

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

Definition at line 59 of file Configurable.py.

59
60 def __repr__(self):
return "@%s"%self.name

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

Definition at line 61 of file Configurable.py.

61
62 def __resolve__(self):
63 # late binding for property references
64 retval = None
65 refname, refprop = self.name.rsplit('.',1)
66 if refname in Configurable.allConfigurables:
67 conf = Configurable.allConfigurables[refname]
68 retval = getattr(conf,refprop)
69 if hasattr(retval,"getFullName"):
70 retval = retval.getFullName()
71 else:
72 raise NameError("name '%s' not found resolving '%s'"%(refname,self))
return retval

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

    This function allow transparent integration with
    Configurable.getValuedProperties.

Definition at line 73 of file Configurable.py.

73
74 def getFullName(self):
75 """This function allow transparent integration with
76 Configurable.getValuedProperties.
77 """
78 try:
79 return self.__resolve__()
80 except NameError:
81 # ignore the error if we cannot resolve the name yet
82 return self
83 except AttributeError:
84 # ignore the error if we cannot resolve the attribute yet
85 return self

## Member Data Documentation

GaudiKernel.Configurable.PropertyReference.name

Definition at line 58 of file Configurable.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v25r0/GaudiKernel/python/GaudiKernel/Configurable.py