add_keyval Interface

public interface add_keyval

Interface to build new key-value pairs


Module Procedures

private subroutine add_keyval_to_table(table, key, ptr, stat)

Create a new key-value pair inside an existing table

Arguments

Type IntentOptional Attributes Name
class(toml_table), intent(inout) :: table

Instance of the TOML table

character(kind=tfc, len=*), intent(in) :: key

Key for the new key-value pair

type(toml_keyval), intent(out), pointer :: ptr

Pointer to the newly created key-value pair

integer, intent(out), optional :: stat

Status of operation

private subroutine add_keyval_to_table_key(table, key, ptr, stat)

Create a new key-value pair inside an existing table

Arguments

Type IntentOptional Attributes Name
class(toml_table), intent(inout) :: table

Instance of the TOML table

type(toml_key), intent(in) :: key

Key for the new key-value pair

type(toml_keyval), intent(out), pointer :: ptr

Pointer to the newly created key-value pair

integer, intent(out), optional :: stat

Status of operation

private subroutine add_keyval_to_array(array, ptr, stat)

Create a new key-value pair inside an existing array

Arguments

Type IntentOptional Attributes Name
class(toml_array), intent(inout) :: array

Instance of the TOML array

type(toml_keyval), intent(out), pointer :: ptr

Pointer to the newly created key-value pair

integer, intent(out), optional :: stat

Status of operation