set_string Interface

public interface set_string

Module Procedures

private subroutine set_character(table, key, var, error, whereAt)

Function wrapper to set a character(len=:), allocatable variable to a toml table

Check the key is not empty

Arguments

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

Instance of the TOML data structure

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

List of keys to check.

character(len=*), intent(in), optional :: var

The character variable

type(error_t), intent(out), allocatable :: error

Error handling

character(len=*), intent(in), optional :: whereAt

Optional description

private subroutine set_string_type(table, key, var, error, whereAt)

Function wrapper to set a character(len=:), allocatable variable to a toml table

Arguments

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

Instance of the TOML data structure

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

List of keys to check.

type(string_t), intent(in) :: var

The character variable

type(error_t), intent(out), allocatable :: error

Error handling

character(len=*), intent(in), optional :: whereAt

Optional description