Add child ID to children IDs list.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
class(xml_tag), | intent(inout) | :: | self |
XML tag. |
||
integer(kind=I4P), | intent(in) | :: | child_id |
Child ID. |
pure subroutine add_child_id(self, child_id) !< Add child ID to children IDs list. class(xml_tag), intent(inout) :: self !< XML tag. integer(I4P), intent(in) :: child_id !< Child ID. if (allocated(self%child_id)) then self%child_id = [self%child_id, child_id] else self%child_id = [child_id] endif self%children_number = size(self%child_id) endsubroutine add_child_id