Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | jsonString | |||
type(ESMF_KeywordEnforcer), | optional | :: | keywordEnforcer | |||
integer, | intent(out), | optional | :: | rc |
function ESMF_InfoCreateByParse(jsonString, keywordEnforcer, rc) ! !ARGUMENTS: character(len=*), intent(in) :: jsonString type(ESMF_KeywordEnforcer), optional:: keywordEnforcer ! must use keywords below integer, intent(out), optional :: rc ! !RETURN VALUE: type(ESMF_Info) :: ESMF_InfoCreateByParse ! ! !DESCRIPTION: ! Create an \texttt{ESMF\_Info} object by parsing a JSON-formatted string. ! ! The arguments are: ! \begin{description} ! \item [jsonString] ! The string to parse. ! \item [{[rc]}] ! Return code; equals {\tt ESMF\_SUCCESS} if there are no errors. ! \end{description} !EOP integer :: localrc localrc = ESMF_FAILURE if (present(rc)) rc = ESMF_FAILURE ESMF_InfoCreateByParse%ptr = c_info_create_by_parse(trim(jsonString)//C_NULL_CHAR, localrc) if (ESMF_LogFoundError(localrc, ESMF_ERR_PASSTHRU, ESMF_CONTEXT, rcToReturn=rc)) return if (present(rc)) rc = ESMF_SUCCESS end function ESMF_InfoCreateByParse