toml_dump Interface

public interface toml_dump

Module Procedures

private subroutine toml_dump_to_file(val, filename, error, config)

Write string representation of JSON value to a file

Arguments

Type IntentOptional Attributes Name
class(toml_value), intent(inout) :: val

TOML value to visit

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

File name to write to

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

Error handling

type(toml_ser_config), intent(in), optional :: config

Configuration for serializer

private subroutine toml_dump_to_unit(val, io, error, config)

Write string representation of JSON value to a connected formatted unit

Arguments

Type IntentOptional Attributes Name
class(toml_value), intent(inout) :: val

TOML value to visit

integer, intent(in) :: io

Formatted unit to write to

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

Error handling

type(toml_ser_config), intent(in), optional :: config

Configuration for serializer