Assign two abstract objects.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(object), | intent(inout) | :: | lhs |
Left hand side. |
||
class(object), | intent(in) | :: | rhs |
Rigth hand side. |
elemental subroutine assign_object(lhs, rhs) !< Assign two abstract objects. class(object), intent(inout) :: lhs !< Left hand side. class(object), intent(in) :: rhs !< Rigth hand side. if (allocated(rhs%progname )) lhs%progname = rhs%progname if (allocated(rhs%version )) lhs%version = rhs%version if (allocated(rhs%help )) lhs%help = rhs%help if (allocated(rhs%help_color )) lhs%help_color = rhs%help_color if (allocated(rhs%help_style )) lhs%help_style = rhs%help_style if (allocated(rhs%help_markdown)) lhs%help_markdown = rhs%help_markdown if (allocated(rhs%description )) lhs%description = rhs%description if (allocated(rhs%license )) lhs%license = rhs%license if (allocated(rhs%authors )) lhs%authors = rhs%authors if (allocated(rhs%epilog )) lhs%epilog = rhs%epilog if (allocated(rhs%m_exclude )) lhs%m_exclude = rhs%m_exclude if (allocated(rhs%error_message)) lhs%error_message = rhs%error_message if (allocated(rhs%error_color )) lhs%error_color = rhs%error_color if (allocated(rhs%error_style )) lhs%error_style = rhs%error_style lhs%error = rhs%error lhs%usage_lun = rhs%usage_lun lhs%version_lun = rhs%version_lun lhs%error_lun = rhs%error_lun endsubroutine assign_object