set_value Interface

public interface set_value

Setter functions to manipulate TOML tables


Module Procedures

private subroutine set_child_value_float_sp(table, key, val, stat, origin)

Set TOML value to single precision float

Arguments

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

Instance of the TOML table

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

Key in this TOML table

real(kind=tf_sp), intent(in) :: val

Real value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_float_dp(table, key, val, stat, origin)

Set TOML value to double precision float

Arguments

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

Instance of the TOML table

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

Key in this TOML table

real(kind=tf_dp), intent(in) :: val

Real value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_integer_i1(table, key, val, stat, origin)

Set TOML value to one byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i1), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_integer_i2(table, key, val, stat, origin)

Set TOML value to two byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i2), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_integer_i4(table, key, val, stat, origin)

Set TOML value to four byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i4), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_integer_i8(table, key, val, stat, origin)

Set TOML value to eight byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i8), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_bool(table, key, val, stat, origin)

Set TOML value to logical

Arguments

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

Instance of the TOML table

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

Key in this TOML table

logical, intent(in) :: val

Boolean value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_datetime(table, key, val, stat, origin)

Set TOML value to datetime

Arguments

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

Instance of the TOML table

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

Key in this TOML table

type(toml_datetime), intent(in) :: val

Datetime value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_child_value_string(table, key, val, stat, origin)

Set TOML value to deferred-length character

Arguments

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

Instance of the TOML table

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

Key in this TOML table

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

String value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_float_sp(table, key, val, stat, origin)

Set TOML value to single precision float

Arguments

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

Instance of the TOML table

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

Key in this TOML table

real(kind=tf_sp), intent(in) :: val

Real value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_float_dp(table, key, val, stat, origin)

Set TOML value to double precision float

Arguments

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

Instance of the TOML table

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

Key in this TOML table

real(kind=tf_dp), intent(in) :: val

Real value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_integer_i1(table, key, val, stat, origin)

Set TOML value to one byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i1), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_integer_i2(table, key, val, stat, origin)

Set TOML value to two byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i2), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_integer_i4(table, key, val, stat, origin)

Set TOML value to four byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i4), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_integer_i8(table, key, val, stat, origin)

Set TOML value to eight byte integer

Arguments

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

Instance of the TOML table

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

Key in this TOML table

integer(kind=tf_i8), intent(in) :: val

Integer value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_bool(table, key, val, stat, origin)

Set TOML value to logical

Arguments

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

Instance of the TOML table

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

Key in this TOML table

logical, intent(in) :: val

Boolean value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_datetime(table, key, val, stat, origin)

Set TOML value to datetime

Arguments

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

Instance of the TOML table

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

Key in this TOML table

type(toml_datetime), intent(in) :: val

Datetime value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_key_value_string(table, key, val, stat, origin)

Set TOML value to deferred-length character

Arguments

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

Instance of the TOML table

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

Key in this TOML table

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

String value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure