ESMF_IO_YAMLParse Subroutine

public subroutine ESMF_IO_YAMLParse(yaml, keywordEnforcer, parseflag, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_IO_YAML) :: yaml
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
type(ESMF_IO_YAMLParse_Flag), intent(in), optional :: parseflag
integer, intent(out), optional :: rc

Source Code

  subroutine ESMF_IO_YAMLParse(yaml, keywordEnforcer, parseflag, rc)
!
! !ARGUMENTS:
    type(ESMF_IO_YAML)                                 :: yaml
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
    type(ESMF_IO_YAMLParse_Flag), intent(in), optional :: parseflag
    integer,                     intent(out), optional :: rc

! !DESCRIPTION:
!     Parses the content of a {\tt ESMF\_YAML\_IO} object to file.
!
!     The arguments are:
!     \begin{description}
!     \item[{yaml}]
!          Parse contents of this {\tt ESMF\_IO_YAML} object.
!     \item[{parseflag}]
!          Interpret YAML content according to {\tt parseflag}.
!     \item[{[rc]}]
!          Return code; equals {\tt ESMF\_SUCCESS} if there are no errors.
!     \end{description}
!     
!EOPI

    ! local return code
    integer :: localrc
!
!   ! Assume failure until success
    if (present(rc)) rc = ESMF_RC_NOT_IMPL
!
!   invoke C to C++ entry point
    call c_ESMC_IO_YAMLParse(yaml, parseflag, localrc)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
         ESMF_CONTEXT, rcToReturn=rc)) return

    ! Return success
    if (present(rc)) rc = ESMF_SUCCESS

  end subroutine ESMF_IO_YAMLParse