gobj_create_tree()

gobj_create_tree()#

Creates a hierarchical tree of gobj instances from a JSON configuration string. The function parses the configuration, applies global settings, and instantiates the objects accordingly.

Prototype

hgobj gobj_create_tree(
    hgobj           parent,
    const char      *tree_config,
    const char      *json_config_variables
);

Parameters

Key

Type

Description

parent

hgobj

The parent gobj under which the tree will be created.

tree_config

const char *

A JSON string defining the structure and attributes of the gobj tree.

json_config_variables

const char *

A JSON string containing configuration variables to be applied to the tree.


Return Value

Returns the root gobj of the created tree, or NULL if an error occurs.

Notes

This function internally calls gobj_create_tree0() after parsing and applying configuration variables.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples