CTL1 provides functions that allow to manipulate the
dictionary entries of string
data type.
Note | |
---|---|
These functions allow to manipulate also the entries that are not defined in the graph. You may write dictionary value to an entry first, and then access it using the functions for reading the dictionary. |
string read_dict(
string name)
;
This function takes the dictionary, selects the entry
specified by the name
and returns its value,
which is of string data type.
string dict_get_str(
string name)
;
This function takes the dictionary, selects the entry
specified by the name
and returns its value,
which is of string data type.
void write_dict(
string name, string value)
;
This function takes the dictionary and writes a new or updates the existing entry of string data type, specified as the first argument of the function, and assigns it the value specified as the second argument, which is also of string data type.
boolean dict_put_str(
string name, string value)
;
This function takes the dictionary and writes a new or updates the existing entry of string data type, specified as the first argument of the function, and assigns it the value specified as the second argument, which is also of string data type.
void delete_dict(
string name)
;
This function takes the dictionary and deletes the
property with specified name
.
Currently we are able to work just with string dictionary
type. For this reason, to access the value of the
heightMin
property, following CTL code should be
used:
value = read_dict("heightMin");