holds the value and the documentation string of a property
Definition at line 183 of file Bindings.py.
◆ __init__()
| def GaudiPython.Bindings.PropertyEntry.__init__ |
( |
|
self, |
|
|
|
prop |
|
) |
| |
Definition at line 186 of file Bindings.py.
186 def __init__(self, prop):
187 self._type =
type(prop).__name__
188 self.__doc__ =
" --- Property type is " + self.ptype()
190 if issubclass(
type(prop), GaudiHandleProperty):
191 self._value = prop.value()
192 elif issubclass(
type(prop), GaudiHandleArrayProperty):
193 self._value = prop.value()
197 self._value = eval(prop.toString(), {}, {})
199 if hasattr(prop,
'value'):
200 self._value = prop.value()
202 self._value = prop.toString()
204 self.__doc__ +=
" --- Default value = " + str(self._value) +
" --- " 205 if prop.documentation() !=
'none':
206 self.__doc__ = prop.documentation() +
'\\n' + self.__doc__
208 self._property = prop
◆ documentation()
| def GaudiPython.Bindings.PropertyEntry.documentation |
( |
|
self | ) |
|
Definition at line 220 of file Bindings.py.
220 def documentation(self):
◆ hasDoc()
| def GaudiPython.Bindings.PropertyEntry.hasDoc |
( |
|
self | ) |
|
Definition at line 223 of file Bindings.py.
224 return len(self.__doc__) > 0
and self.__doc__ !=
'none'
◆ property()
| def GaudiPython.Bindings.PropertyEntry.property |
( |
|
self | ) |
|
Definition at line 216 of file Bindings.py.
217 "Return the underlying property itself " 218 return self._property
◆ ptype()
| def GaudiPython.Bindings.PropertyEntry.ptype |
( |
|
self | ) |
|
◆ value()
| def GaudiPython.Bindings.PropertyEntry.value |
( |
|
self | ) |
|
◆ __doc__
| GaudiPython.Bindings.PropertyEntry.__doc__ |
|
private |
◆ _property
| GaudiPython.Bindings.PropertyEntry._property |
|
private |
◆ _type
| GaudiPython.Bindings.PropertyEntry._type |
|
private |
◆ _value
| GaudiPython.Bindings.PropertyEntry._value |
|
private |
The documentation for this class was generated from the following file: