Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(string), | intent(in) | :: | dtv | The string. |
||
integer, | intent(in) | :: | unit | Logical unit. |
||
integer, | intent(out) | :: | iostat | IO status code. |
||
character(kind=CK,len=*), | intent(inout) | :: | iomsg | IO status message. |
Unformatted output.
subroutine write_unformatted(dtv, unit, iostat, iomsg)
!---------------------------------------------------------------------------------------------------------------------------------
!< Unformatted output.
!---------------------------------------------------------------------------------------------------------------------------------
class(string), intent(in) :: dtv !< The string.
integer, intent(in) :: unit !< Logical unit.
integer, intent(out) :: iostat !< IO status code.
character(kind=CK, len=*), intent(inout) :: iomsg !< IO status message.
!---------------------------------------------------------------------------------------------------------------------------------
!---------------------------------------------------------------------------------------------------------------------------------
if (allocated(dtv%raw)) then
write(unit, iostat=iostat, iomsg=iomsg)dtv%raw
else
write(unit, iostat=iostat, iomsg=iomsg)''
endif
return
!---------------------------------------------------------------------------------------------------------------------------------
endsubroutine write_unformatted