String key. Deferred-len char pointer associates with a fixed-len target and assumes its length; parsing errors if the parsed value is LONGER than len(tgt) (no silent truncation).
| Type | Visibility | Attributes | Name | Initial | |||
|---|---|---|---|---|---|---|---|
| character(len=:), | public, | allocatable | :: | dead_reason |
Unallocated/empty = live. Non-empty = this knob is registered
(accepted, type/range-validated) but does NOT reach any
ocean-path behaviour – e.g. |
||
| character(len=:), | public, | allocatable | :: | default | |||
| character(len=:), | public, | allocatable | :: | doc |
Human-readable description (FORD-style synthesis doc). |
||
| logical, | public | :: | found | = | .false. |
Parse-state: set true when the key is seen in the file. |
|
| character(len=:), | public, | allocatable | :: | name |
Key name (matched case-insensitively). |
||
| logical, | public | :: | required | = | .false. |
If true, the key must appear whenever its group appears. |
|
| character(len=:), | public, | pointer | :: | tgt | => | null() | |
| character(len=:), | public, | allocatable | :: | units |
Optional units string, default ‘’. |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_string_key_t), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_string_key_t), | intent(in) | :: | this |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_string_key_t), | intent(inout) | :: | this | |||
| character(len=*), | intent(in) | :: | values(:) | |||
| character(len=:), | intent(out), | allocatable | :: | err_msg |
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| class(nml_string_key_t), | intent(in) | :: | this |
type, extends(nml_key_t) :: nml_string_key_t !! String key. Deferred-len char pointer associates with a !! fixed-len target and assumes its length; parsing errors if the !! parsed value is LONGER than len(tgt) (no silent truncation). character(len=:), pointer :: tgt => null() character(len=:), allocatable :: default contains procedure :: parse_tokens => string_parse procedure :: value_string => string_value_string procedure :: default_string => string_default_string procedure :: is_default => string_is_default end type nml_string_key_t