| # Gaudi Framework, version v22r0 |

Home |  | Generated: 9 Feb 2011

# GaudiPython::Bindings::PropertyEntry Class Reference

List of all members.

## Public Member Functions
def | __init__
def | value
def | ptype
def | property
def | documentation
def | hasDoc
## Private Attributes
| _type
| __doc__
| _value
| _property
| keep the original property

## Detailed Description

    holds the value and the documentation string of a property

Definition at line 129 of file Bindings.py.

## Member Function Documentation

def GaudiPython::Bindings::PropertyEntry::__init__ | ( |  | self,
|  |  | prop |
| ) |  |  |

Definition at line 131 of file Bindings.py.

    00132                              :
    00133         self._type = type(prop).__name__
    00134         self.__doc__ = " --- Property type is " + self.ptype()
    00135
    00136         if   issubclass(type(prop),GaudiHandleProperty) :
    00137             self._value = prop.value()   # do nothing for ATLAS' handles
    00138         elif issubclass(type(prop),GaudiHandleArrayProperty) :
    00139             self._value = prop.value()   # do nothing for ATLAS' handles
    00140         else :
    00141             # for all other types try to extract the native python type
    00142             try:    self._value = eval( prop.toString() , {} , {} )
    00143             except:
    00144                 if hasattr ( prop , 'value' ) : self._value = prop.value()
    00145                 else                          : self._value = prop.toString()
    00146
    00147         self.__doc__ += " --- Default value = " + str(self._value) + " --- "
    00148         if prop.documentation() != 'none':
    00149             self.__doc__ = prop.documentation() + '\\n' + self.__doc__
    00150         ## keep the original property
            self._property = prop # property itself

def GaudiPython::Bindings::PropertyEntry::documentation | ( |  | self | ) |

Definition at line 158 of file Bindings.py.

    00159                             :
            return self.__doc__

def GaudiPython::Bindings::PropertyEntry::hasDoc | ( |  | self | ) |

Definition at line 160 of file Bindings.py.

    00161                     :
    00162         return len(self.__doc__)>0 and self.__doc__ != 'none'
    00163
    #----iProperty class---------------------------------------------------------------------

def GaudiPython::Bindings::PropertyEntry::property | ( |  | self | ) |

Definition at line 155 of file Bindings.py.

    00156                       :
    00157         "Return the underlying  property itself "
            return self._property

def GaudiPython::Bindings::PropertyEntry::ptype | ( |  | self | ) |

Definition at line 153 of file Bindings.py.

    00154                     :
            return self._type

def GaudiPython::Bindings::PropertyEntry::value | ( |  | self | ) |

Definition at line 151 of file Bindings.py.

    00152                     :
            return self._value

## Member Data Documentation

GaudiPython::Bindings::PropertyEntry::__doc__`[private]`

Definition at line 133 of file Bindings.py.

GaudiPython::Bindings::PropertyEntry::_property`[private]`

keep the original property

Definition at line 150 of file Bindings.py.

GaudiPython::Bindings::PropertyEntry::_type`[private]`

Definition at line 132 of file Bindings.py.

GaudiPython::Bindings::PropertyEntry::_value`[private]`

Definition at line 136 of file Bindings.py.

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

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r0/GaudiPython/python/GaudiPython/Bindings.py

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