Gaudi Framework, version v23r0 |
Home | Generated: Mon Jan 30 2012 |
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 |
holds the value and the documentation string of a property
Definition at line 129 of file Bindings.py.
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.
def GaudiPython::Bindings::PropertyEntry::hasDoc | ( | self ) |
Definition at line 160 of file Bindings.py.
def GaudiPython::Bindings::PropertyEntry::property | ( | self ) |
Definition at line 155 of file Bindings.py.
def GaudiPython::Bindings::PropertyEntry::ptype | ( | self ) |
Definition at line 153 of file Bindings.py.
def GaudiPython::Bindings::PropertyEntry::value | ( | self ) |
Definition at line 151 of file Bindings.py.
Definition at line 131 of file Bindings.py.
keep the original property
Definition at line 132 of file Bindings.py.
Definition at line 131 of file Bindings.py.
Definition at line 131 of file Bindings.py.