json_file_get_logical Subroutine

private subroutine json_file_get_logical(me, path, val, found, default)

Get a logical(LK) value from a JSON file.

Type Bound



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

the path to the variable

logical(kind=LK), intent(out) :: val


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

if it was really found

logical(kind=LK), intent(in), optional :: default


Source Code

Source Code

    subroutine json_file_get_logical(me,path,val,found,default)

    implicit none

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

    call me%core%get(me%p, path, val, found, default)

    end subroutine json_file_get_logical