json_file_update_logical Subroutine

private subroutine json_file_update_logical(me, path, val, found)

Given the path string, if the variable is present in the file, and is a scalar, then update its value. If it is not present, then create it and set its value.

See also

Type Bound

json_file

Arguments

Type IntentOptional Attributes Name
class(json_file), intent(inout) :: me
character(kind=CK, len=*), intent(in) :: path
logical(kind=LK), intent(in) :: val
logical(kind=LK), intent(out) :: found

Calls

proc~~json_file_update_logical~~CallsGraph proc~json_file_update_logical json_file_module::json_file%json_file_update_logical none~update~2 json_value_module::json_core%update proc~json_file_update_logical->none~update~2 proc~json_failed json_value_module::json_core%json_failed proc~json_file_update_logical->proc~json_failed proc~json_update_string_name_ascii json_value_module::json_core%json_update_string_name_ascii none~update~2->proc~json_update_string_name_ascii proc~json_update_string_val_ascii json_value_module::json_core%json_update_string_val_ascii none~update~2->proc~json_update_string_val_ascii proc~json_update_string_name_ascii->none~update~2 interface~to_unicode json_string_utilities::to_unicode proc~json_update_string_name_ascii->interface~to_unicode proc~json_update_string_val_ascii->none~update~2 proc~json_update_string_val_ascii->interface~to_unicode proc~to_uni json_string_utilities::to_uni interface~to_unicode->proc~to_uni proc~to_uni_vec json_string_utilities::to_uni_vec interface~to_unicode->proc~to_uni_vec

Source Code

    subroutine json_file_update_logical(me,path,val,found)

    implicit none

    class(json_file),intent(inout)      :: me
    character(kind=CK,len=*),intent(in) :: path
    logical(LK),intent(in)              :: val
    logical(LK),intent(out)             :: found

    if (.not. me%core%failed()) call me%core%update(me%p,path,val,found)

    end subroutine json_file_update_logical