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