1

Accessors to FrameV2 class data


O
Otukka

Add accessor methods to the FrameV2 class to allow retrieval of data added using the AddString, AddDouble, AddInteger, AddBoolean, AddByte, and AddByteArray methods. This enhancement will facilitate unit testing by enabling verification of the stored data. Adding these accessor methods will enhance the testability of the FrameV2 class, allowing developers to verify that data is correctly added and stored.

My use case: I use separate classes to parse acquired data and convert them to FrameV2 objects. This approach allows me to test the complex protocol directly in C++ code without using Python test automation. However, now I can't test the FrameV2 object. With the Frame object, testing is possible as it has public accessors to data, but the legacy Frame class lacks the niceties of the new class.

A