Retrieves a parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json.
More...
|
subroutine | json_get_or_default_real (json, name, value, default) |
| Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...
|
|
subroutine | json_get_or_default_double (json, name, value, default) |
| Retrieves a real parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...
|
|
subroutine | json_get_or_default_integer (json, name, value, default) |
| Retrieves an integer parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...
|
|
subroutine | json_get_or_default_string (json, name, value, default) |
| Retrieves a string parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...
|
|
subroutine | json_get_or_default_logical (json, name, value, default) |
| Retrieves a logical parameter by name or assigns a provided default value. In the latter case also adds the missing paramter to the json. More...
|
|
Definition at line 54 of file json_utils.f90.
◆ json_get_or_default_double()
subroutine json_utils::json_get_or_default::json_get_or_default_double |
( |
type(json_file), intent(inout) |
json, |
|
|
character(len=*), intent(in) |
name, |
|
|
real(kind=dp), intent(out) |
value, |
|
|
real(kind=dp), intent(in) |
default |
|
) |
| |
|
private |
- Parameters
-
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter |
Definition at line 300 of file json_utils.f90.
◆ json_get_or_default_integer()
subroutine json_utils::json_get_or_default::json_get_or_default_integer |
( |
type(json_file), intent(inout) |
json, |
|
|
character(len=*), intent(in) |
name, |
|
|
integer, intent(out) |
value, |
|
|
integer, intent(in) |
default |
|
) |
| |
|
private |
- Parameters
-
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter |
Definition at line 320 of file json_utils.f90.
◆ json_get_or_default_logical()
subroutine json_utils::json_get_or_default::json_get_or_default_logical |
( |
type(json_file), intent(inout) |
json, |
|
|
character(len=*), intent(in) |
name, |
|
|
logical, intent(out) |
value, |
|
|
logical, intent(in) |
default |
|
) |
| |
|
private |
- Parameters
-
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter |
Definition at line 340 of file json_utils.f90.
◆ json_get_or_default_real()
subroutine json_utils::json_get_or_default::json_get_or_default_real |
( |
type(json_file), intent(inout) |
json, |
|
|
character(len=*), intent(in) |
name, |
|
|
real(kind=sp), intent(out) |
value, |
|
|
real(kind=sp), intent(in) |
default |
|
) |
| |
|
private |
- Parameters
-
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter |
Definition at line 280 of file json_utils.f90.
◆ json_get_or_default_string()
subroutine json_utils::json_get_or_default::json_get_or_default_string |
( |
type(json_file), intent(inout) |
json, |
|
|
character(len=*), intent(in) |
name, |
|
|
character(len=:), intent(out), allocatable |
value, |
|
|
character(len=*), intent(in) |
default |
|
) |
| |
|
private |
- Parameters
-
[in,out] | json | The json to retrieve the parameter from. |
[in] | name | The full path to the parameter. |
[out] | value | The variable to be populated with the retrieved parameter |
Definition at line 360 of file json_utils.f90.
The documentation for this interface was generated from the following file: