gobj_read_integer_attr()
#
Retrieves the integer value of a specified attribute from the given hgobj
. The function supports attribute inheritance from bottom objects.
Prototype
json_int_t gobj_read_integer_attr(
hgobj gobj,
const char *name
);
Parameters
Key |
Type |
Description |
---|---|---|
|
|
The object from which the attribute value is retrieved. |
|
|
The name of the attribute to retrieve. |
Return Value
Returns the integer value of the specified attribute. If the attribute is not found, returns 0.
Notes
If the attribute is inherited from a bottom object, the function will traverse the hierarchy to retrieve the value. If the attribute is not found, a warning is logged.
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples