Abstract base value for TOML data types
Type | Visibility | Attributes | Name | Initial | |||
---|---|---|---|---|---|---|---|
character(kind=tfc, len=:), | public, | allocatable | :: | key |
Raw representation of the key to the TOML value |
||
integer, | public | :: | origin | = | 0 |
Original source of the value |
Accept a visitor to transverse the data structure
Accept a visitor to transverse the data structure
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | self |
Instance of the TOML value |
||
class(toml_visitor), | intent(inout) | :: | visitor |
Visitor for this value |
Release allocation hold by TOML value
Deconstructor to cleanup allocations (optional)
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(inout) | :: | self |
Instance of the TOML value |
Get escaped key to TOML value
Get escaped key to TOML value
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(in) | :: | self |
TOML value instance. |
||
character(kind=tfc, len=:), | allocatable | :: | key |
Contains valid TOML key on exit |
Compare raw key of TOML value to input key
Compare raw key of TOML value to input key
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(toml_value), | intent(in) | :: | self |
TOML value instance. |
||
character(kind=tfc, len=*), | intent(in) | :: | key |
TOML raw key to compare to |
type, abstract :: toml_value !> Raw representation of the key to the TOML value character(kind=tfc, len=:), allocatable :: key !> Original source of the value integer :: origin = 0 contains !> Accept a visitor to transverse the data structure procedure :: accept !> Get escaped key to TOML value procedure :: get_key !> Compare raw key of TOML value to input key procedure :: match_key !> Release allocation hold by TOML value procedure(destroy), deferred :: destroy end type toml_value