| # Gaudi Framework, version v21r10p1 |

Home |  | Generated: 29 Jul 2010

# 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.

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

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

Definition at line 151 of file Bindings.py.

    00151                     :
    00152         return self._value
        def ptype(self) :

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

Definition at line 153 of file Bindings.py.

    00153                     :
    00154         return self._type
        def property(self):

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

Definition at line 155 of file Bindings.py.

    00155                       :
    00156         "Return the underlying  property itself "
    00157         return self._property
        def documentation(self) :

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

Definition at line 158 of file Bindings.py.

    00158                             :
    00159         return self.__doc__
        def hasDoc(self):

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

Definition at line 160 of file Bindings.py.

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

## Member Data Documentation

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

Definition at line 132 of file Bindings.py.

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

Definition at line 133 of file Bindings.py.

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

Definition at line 136 of file Bindings.py.

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

keep the original property

Definition at line 150 of file Bindings.py.

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

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