holds the value and the documentation string of a property
Definition at line 240 of file Bindings.py.
◆ __init__()
def GaudiPython.Bindings.PropertyEntry.__init__ |
( |
|
self, |
|
|
|
prop |
|
) |
| |
Definition at line 243 of file Bindings.py.
243 def __init__(self, prop):
244 self._type =
type(prop).__name__
245 self.__doc__ =
" --- Property type is " + self.ptype()
247 if issubclass(
type(prop), GaudiHandleProperty):
248 self._value = prop.value()
249 elif issubclass(
type(prop), GaudiHandleArrayProperty):
250 self._value = prop.value()
254 self._value = eval(prop.toString(), {}, {})
256 if hasattr(prop,
"value"):
257 self._value = prop.value()
259 self._value = prop.toString()
261 self.__doc__ +=
" --- Default value = " + str(self._value) +
" --- "
262 if prop.documentation() !=
"none":
263 self.__doc__ = prop.documentation() +
"\\n" + self.__doc__
265 self._property = prop
◆ documentation()
def GaudiPython.Bindings.PropertyEntry.documentation |
( |
|
self | ) |
|
Definition at line 277 of file Bindings.py.
277 def documentation(self):
◆ hasDoc()
def GaudiPython.Bindings.PropertyEntry.hasDoc |
( |
|
self | ) |
|
Definition at line 280 of file Bindings.py.
281 return len(self.__doc__) > 0
and self.__doc__ !=
"none"
◆ property()
def GaudiPython.Bindings.PropertyEntry.property |
( |
|
self | ) |
|
Definition at line 273 of file Bindings.py.
274 "Return the underlying property itself"
275 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: