Function in stdx_tml.h

tml_node_get_bool

Retrieve a boolean entry value from a node by name.

X_TML_API int tml_node_get_bool(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 u8 *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
u8 *out_value
Output boolean value.

Returns

Non-zero on success, 0 if the entry does not exist or is not a boolean.

Function in stdx_tml.h

tml_node_get_f64

Retrieve a double-precision floating point entry value from a node by name.

X_TML_API int tml_node_get_f64(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 f64 *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
f64 *out_value
Output floating point value.

Returns

Non-zero on success, 0 if the entry does not exist or is not a float.

Function in stdx_tml.h

tml_node_get_f64_array

Retrieve an f64 array entry from a node by name.

X_TML_API int tml_node_get_f64_array(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 TMLF64Slice *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
TMLF64Slice *out_value
Output array slice.

Returns

Non-zero on success, 0 if the entry does not exist or is not an f64 array.

Function in stdx_tml.h

tml_node_get_i64

Retrieve a signed 64-bit integer entry value from a node by name.

X_TML_API int tml_node_get_i64(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 i64 *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
i64 *out_value
Output integer value.

Returns

Non-zero on success, 0 if the entry does not exist or is not an integer.

Function in stdx_tml.h

tml_node_get_i64_array

Retrieve an i64 array entry from a node by name.

X_TML_API int tml_node_get_i64_array(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 TMLI64Slice *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
TMLI64Slice *out_value
Output array slice.

Returns

Non-zero on success, 0 if the entry does not exist or is not an i64 array.

Function in stdx_tml.h

tml_node_get_string

Retrieve a string entry value from a node by name.

X_TML_API int tml_node_get_string(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 TMLString *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
TMLString *out_value
Output string view.

Returns

Non-zero on success, 0 if the entry does not exist or is not a string.

Function in stdx_tml.h

tml_node_get_string_array

Retrieve a string array entry from a node by name.

X_TML_API int tml_node_get_string_array(
 TMLDocument const *doc,
 TMLNode const *node,
 char const *name,
 TMLStringSlice *out_value
);

Parameters

TMLDocument const *doc
Pointer to the parsed document.
TMLNode const *node
Pointer to the parent node.
char const *name
Name of the entry.
TMLStringSlice *out_value
Output array slice.

Returns

Non-zero on success, 0 if the entry does not exist or is not a string array.