ESMF_IO_YAMLIngest Subroutine

public subroutine ESMF_IO_YAMLIngest(yaml, content, keywordEnforcer, rc)

Arguments

Type IntentOptional Attributes Name
type(ESMF_IO_YAML) :: yaml
character(len=*), intent(in) :: content
type(ESMF_KeywordEnforcer), optional :: keywordEnforcer
integer, intent(out), optional :: rc

Source Code

  subroutine ESMF_IO_YAMLIngest(yaml, content, keywordEnforcer, rc)
!
! !ARGUMENTS:
    type(ESMF_IO_YAML)                      :: yaml
    character(len=*), intent(in)            :: content
type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below
    integer,          intent(out), optional :: rc

! !DESCRIPTION:
!     Ingests YAML content into an {\tt ESMF\_YAML\_IO} object.    
!
!     The arguments are:
!     \begin{description}
!     \item[{yaml}]
!          Ingest content into this {\tt ESMF\_IO_YAML} object.
!     \item[{content}]
!          string holding YAML content
!     \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_YAMLIngest(yaml, content, localrc)
    if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, &
         ESMF_CONTEXT, rcToReturn=rc)) return

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

  end subroutine ESMF_IO_YAMLIngest