TOML key-value pair
Overloaded constructor for TOML values
Constructor to create a new TOML key-value pair
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_keyval), | intent(out) | :: | self |
Instance of the TOML key-value pair |
TOML key-value pair
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 |
|
integer, | public | :: | origin_value | = | 0 |
Origin of value |
|
class(generic_value), | public, | allocatable | :: | val |
Actual TOML value |
procedure, public :: accept | ../../ Accept a visitor to transverse the data structure |
procedure, public :: destroy | ../../ Release allocation hold by TOML key-value pair |
generic, public :: get => get_float, get_integer, get_boolean, get_datetime, get_string | ../../ Get the value stored in the key-value pair |
procedure, public :: get_boolean | |
procedure, public :: get_datetime | |
procedure, public :: get_float | |
procedure, public :: get_integer | |
procedure, public :: get_key | ../../ Get escaped key to TOML value |
procedure, public :: get_string | |
procedure, public :: get_type | ../../ Get the type of the value stored in the key-value pair |
procedure, public :: match_key | ../../ Compare raw key of TOML value to input key |
generic, public :: set => set_float, set_integer, set_boolean, set_datetime, set_string | ../../ Set the value for the key-value pair |
procedure, public :: set_boolean | |
procedure, public :: set_datetime | |
procedure, public :: set_float | |
procedure, public :: set_integer | |
procedure, public :: set_string |
Constructor to create a new TOML key-value pair
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(toml_keyval), | intent(out) | :: | self |
Instance of the TOML key-value pair |