Enable features requested in watch options.
Unknown feature names are ignored with a warning.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(feature_manager_t), | intent(inout) | :: | fm | |||
| type(watch_opts_t), | intent(in) | :: | w |
subroutine enable_features(fm, w) type(feature_manager_t), intent(inout) :: fm type(watch_opts_t), intent(in) :: w integer :: i character(len=:), allocatable :: name if (.not. allocated(w%enabled_features)) return do i = 1, size(w%enabled_features) name = trim(w%enabled_features(i)%s) if (len_trim(name) == 0) cycle select case (name) case ("stats") call add_stats(fm) case default call log_warn(w, "unknown feature '" // name // "' (ignored)") end select end do end subroutine enable_features