Suggested solution:
Create a DataTransformer interface which will have concrete implementations that take in data from the CAN Tracer object and then transform and manipulate that data (ex. an MCAP implementation of DataTransformer would take the data and write it to an MCAP file, whereas a CSV implementation would write to a csv).
Define the interface here. This interface will be needed for MCAP generation.
Suggested solution: Create a DataTransformer interface which will have concrete implementations that take in data from the CAN Tracer object and then transform and manipulate that data (ex. an MCAP implementation of DataTransformer would take the data and write it to an MCAP file, whereas a CSV implementation would write to a csv).
Define the interface here. This interface will be needed for MCAP generation.