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 122 of file Bindings.py.
| def GaudiPython::Bindings::PropertyEntry::__init__ | ( | self, | ||
| prop | ||||
| ) |
Definition at line 124 of file Bindings.py.
00124 : 00125 self._type = type(prop).__name__ 00126 self.__doc__ = " --- Property type is " + self.ptype() 00127 00128 if issubclass(type(prop),GaudiHandleProperty) : 00129 self._value = prop.value() # do nothing for ATLAS' handles 00130 elif issubclass(type(prop),GaudiHandleArrayProperty) : 00131 self._value = prop.value() # do nothing for ATLAS' handles 00132 else : 00133 # for all other types try to extract the native python type 00134 try: self._value = eval( prop.toString() , {} , {} ) 00135 except: self._value = prop.value() 00136 00137 self.__doc__ += " --- Default value = " + str(self._value) + " --- " 00138 if prop.documentation() != 'none': 00139 self.__doc__ = prop.documentation() + '\\n' + self.__doc__ 00140 ## keep the original property 00141 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 146 of file Bindings.py.
00146 : 00147 "Return the underlying property itself " 00148 return self._property def documentation(self) :
| def GaudiPython::Bindings::PropertyEntry::documentation | ( | self | ) |
| def GaudiPython::Bindings::PropertyEntry::hasDoc | ( | self | ) |
Definition at line 125 of file Bindings.py.
Definition at line 126 of file Bindings.py.
Definition at line 129 of file Bindings.py.
1.4.7