|
Gaudi Framework, version v21r9 |
| Home | Generated: 3 May 2010 |
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.
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 | ) |
| def GaudiPython::Bindings::PropertyEntry::ptype | ( | 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 | ) |
| def GaudiPython::Bindings::PropertyEntry::hasDoc | ( | self | ) |
Definition at line 132 of file Bindings.py.
Definition at line 133 of file Bindings.py.
Definition at line 136 of file Bindings.py.