As user I want to be able rename streams from a reader.
synCRON:
legacy references: CDIFHD-165
affected version:
User story
Its often the case that a source format/reader does not define stream names, or just provides a single generic one (i.e. ethernet, can, ...)
As a user I want to read from multiple of such readers simultaneously (both within the adtf_dattool
and with the ADTF Player
) and thus need a possibility to rename the individual streams.
Additional information
I propose a new proxy reader RenameReader
that uses a child reader and renames the streams that the child reader provides.
There are two options on how to achieve this:
-
A new ".rename" file format that can be processed by
RenameReader
It contains- a reference to the original source file
- a list of stream names to use
This allows automatic instantiations of the reader instance (as it is the only reader that can process ".rename" files).
-
The
RenameReader
has astream_name
property. This does not require an additional file but it is currently not possible to define properties for multiple readers in ADTF.
Defintion of done
-
RenameReader is implemented -
RenameReader is documented -
Tests have been added