json_file_get_string_vec Subroutine

private subroutine json_file_get_string_vec(me, path, vec, found, default)

Get a string vector from a JSON file.

Arguments

TypeIntentOptionalAttributesName
class(json_file), intent(inout) :: me
character(kind=CK,len=*), intent(in) :: path

the path to the variable

character(kind=CK,len=*), intent(out), dimension(:), allocatable:: vec

value vector

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

if it was really found

character(kind=CK,len=*), intent(in), optional dimension(:):: default

Contents


Source Code

    subroutine json_file_get_string_vec(me, path, vec, found, default)

    implicit none

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

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

    end subroutine json_file_get_string_vec