gobj_create_tree0()#
Creates a hierarchical tree of gobj instances, initializing attributes and linking child objects to their parent.
Prototype
hgobj gobj_create_tree0(
hgobj parent,
json_t *jn_tree
);
Parameters
Key |
Type |
Description |
|---|---|---|
|
|
The parent |
|
|
A JSON object defining the structure of the |
Return Value
Returns the root gobj of the created tree, or NULL if creation fails.
Notes
[‘The jn_tree parameter must contain a valid JSON structure with gclass, name, and optionally kw for attributes.’, ‘If jn_tree contains a children array, child gobj instances will be recursively created and linked to the parent.’, ‘If only one child is present in zchildren, it is set as the bottom gobj of the parent.’, ‘This function is used internally by gobj_create_tree() to parse JSON configurations.’]
Prototype
// Not applicable in JS
Prototype
# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples