Wrapper for storing key paths
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
type(toml_key), | public, | allocatable | :: | path(:) |
Path components |
Convenience constructors for building key paths from strings instead of keys
Create a new path with two components
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | key1 |
First key to retrieve |
||
character(len=*), | intent(in) | :: | key2 |
Second key to retrieve |
New path
Create a new path with three components
Type | Intent | Optional | 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 |
New path
Create a new path with three components
Type | Intent | Optional | 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 |
New path
type :: toml_path !> Path components type(toml_key), allocatable :: path(:) end type toml_path