toml_path Derived Type

type, public :: toml_path

Wrapper for storing key paths


Components

Type Visibility Attributes Name Initial
type(toml_key), public, allocatable :: path(:)

Path components


Constructor

public interface toml_path

Convenience constructors for building key paths from strings instead of keys

  • private pure function new_path2(key1, key2) result(path)

    Create a new path with two components

    Arguments

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

    First key to retrieve

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

    Second key to retrieve

    Return Value type(toml_path)

    New path

  • private pure function new_path3(key1, key2, key3) result(path)

    Create a new path with three components

    Arguments

    Type IntentOptional Attributes Name
    character(kind=tfc, len=*), intent(in) :: key1

    First key to retrieve

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

    Second key to retrieve

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

    Third key to retrieve

    Return Value type(toml_path)

    New path

  • private pure function new_path4(key1, key2, key3, key4) result(path)

    Create a new path with three components

    Arguments

    Type IntentOptional Attributes Name
    character(kind=tfc, len=*), intent(in) :: key1

    First key to retrieve

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

    Second key to retrieve

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

    Third key to retrieve

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

    Forth key to retrieve

    Return Value type(toml_path)

    New path


Source Code

   type :: toml_path
      !> Path components
      type(toml_key), allocatable :: path(:)
   end type toml_path