This PR introduces SubMessage::decode() and removes Grib2::get_values().
Background of this change
Until now, it was necessary to use Grib2::get_values() to call a decoding function on data. However, it does not work well with other APIs, especially the submessage iterators that are being enhanced recently.
Submessage iterators make it easy to discover and filter submessages. However, decoding found submessages is inefficient because users need to pass the indices of the found submessages to Grib2::get_values() one by one.
This PR adds a decode() method to the submessage itself, allowing users to directly decode the submessages identified using the iterator.
This PR introduces
SubMessage::decode()
and removesGrib2::get_values()
.Background of this change
Until now, it was necessary to use
Grib2::get_values()
to call a decoding function on data. However, it does not work well with other APIs, especially the submessage iterators that are being enhanced recently.Submessage iterators make it easy to discover and filter submessages. However, decoding found submessages is inefficient because users need to pass the indices of the found submessages to
Grib2::get_values()
one by one.This PR adds a
decode()
method to the submessage itself, allowing users to directly decode the submessages identified using the iterator.