json_file_rename Subroutine

private subroutine json_file_rename(me, path, name, found)

Rename a variable in a JSON file.

Type Bound

json_file

Arguments

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

the path to the variable

character(kind=CK, len=*), intent(in) :: name

the new name

logical(kind=LK), intent(out), optional :: found

if the variable was found


Called by

proc~~json_file_rename~~CalledByGraph proc~json_file_rename json_file_module::json_file%json_file_rename proc~json_file_rename_name_ascii json_file_module::json_file%json_file_rename_name_ascii proc~json_file_rename_name_ascii->proc~json_file_rename proc~json_file_rename_path_ascii json_file_module::json_file%json_file_rename_path_ascii proc~json_file_rename_path_ascii->proc~json_file_rename proc~wrap_json_file_rename json_file_module::json_file%wrap_json_file_rename proc~wrap_json_file_rename->proc~json_file_rename

Source Code

    subroutine json_file_rename(me,path,name,found)

    implicit none

    class(json_file),intent(inout)      :: me
    character(kind=CK,len=*),intent(in) :: path   !! the path to the variable
    character(kind=CK,len=*),intent(in) :: name   !! the new name
    logical(LK),intent(out),optional    :: found  !! if the variable was found

    call me%core%rename(me%p, path, name, found)

    end subroutine json_file_rename