Bool (hwx.inspire.core)¶
Store True or False
Public Methods¶
castForSet (self, obj, value) create (self, obj) getInCoreValue (self, obj) setInCoreValue (self, obj, value)
Method Details¶
-
castForSet(self, obj, value)¶
Converts and validates the bool value before setting.
| param obj: | Object this attribute belongs to. |
|---|---|
| type obj: | GeneralObject |
| param value: | Value of the attribute to set. |
| type value: | str, bool |
| returns: | Validated and converted value. |
| rtype: | bool |
-
create(self, obj)
Creates a bool attribute for the specified object.
-
getInCoreValue(self, obj)¶
Calls the incore get method (defined in C++) of the attribute.
-
setInCoreValue(self, obj, value)¶
Calls the incore set method (defined in C++) of the attribute.