set_value Interface

public interface set_value

Setter functions to manipulate TOML arrays


Module Procedures

private subroutine set_elem_value_string(array, pos, val, stat, origin)

Retrieve TOML value as deferred-length character

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_float_sp(array, pos, val, stat, origin)

Retrieve TOML value as single precision floating point number

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_elem_value_float_dp(array, pos, val, stat, origin)

Retrieve TOML value as double precision floating point number

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_elem_value_int_i1(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_int_i2(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_int_i4(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_int_i8(array, pos, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_bool(array, pos, val, stat, origin)

Retrieve TOML value as boolean value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_elem_value_datetime(array, pos, val, stat, origin)

Retrieve TOML value as datetime value

Arguments

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

Instance of the TOML array

integer, intent(in) :: pos

Position in the array

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_array_value_float_sp(array, val, stat, origin)

Retrieve TOML value as single precision floating point number

Arguments

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

Instance of the TOML array

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

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_array_value_float_dp(array, val, stat, origin)

Retrieve TOML value as double precision floating point number

Arguments

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

Instance of the TOML array

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

Floating point value

integer, intent(out), optional :: stat

Status of operation

integer, intent(out), optional :: origin

Origin in the data structure

private subroutine set_array_value_int_i1(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

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_array_value_int_i2(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

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_array_value_int_i4(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

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_array_value_int_i8(array, val, stat, origin)

Retrieve TOML value as integer value

Arguments

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

Instance of the TOML array

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_array_value_bool(array, val, stat, origin)

Retrieve TOML value as boolean value

Arguments

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

Instance of the TOML array

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_array_value_datetime(array, val, stat, origin)

Retrieve TOML value as datetime value

Arguments

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

Instance of the TOML array

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