toml_merge_config Derived Type

type, public :: toml_merge_config

Configuration for merging data structures


Components

Type Visibility Attributes Name Initial
integer, public :: array = merge_policy%preserve

Policy for merging arrays

integer, public :: keyval = merge_policy%preserve

Policy for merging values

integer, public :: table = merge_policy%append

Policy for merging tables


Constructor

public interface toml_merge_config

Constructor for merge configuration

  • private pure function new_merge_config(table, array, keyval) result(config)

    Create a new merge configuration

    Arguments

    Type IntentOptional Attributes Name
    character(len=*), intent(in), optional :: table

    Policy for merging tables

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

    Policy for merging arrays

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

    Policy for merging values

    Return Value type(toml_merge_config)

    Merge policy


Source Code

   type :: toml_merge_config

      !> Policy for merging tables
      integer :: table = merge_policy%append

      !> Policy for merging arrays
      integer :: array = merge_policy%preserve

      !> Policy for merging values
      integer :: keyval = merge_policy%preserve
   end type toml_merge_config