AgIsoStack++
A control-function-focused implementation of the major ISOBUS and J1939 protocols
|
A interface class that represents data payload of a CAN message of arbitrary length. More...
#include <can_message_data.hpp>
Public Member Functions | |
virtual | ~CANMessageData ()=default |
Default destructor. | |
virtual std::size_t | size () const =0 |
Get the size of the data. | |
virtual std::uint8_t | get_byte (std::size_t index)=0 |
Get the byte at the given index. | |
virtual std::unique_ptr< CANMessageData > | copy_if_not_owned (std::unique_ptr< CANMessageData > self) const =0 |
If the data isn't owned by this class, make a copy of the data. | |
A interface class that represents data payload of a CAN message of arbitrary length.
Definition at line 25 of file can_message_data.hpp.
|
pure virtual |
If the data isn't owned by this class, make a copy of the data.
[in] | self | A pointer to this object. |
Implemented in isobus::CANMessageDataVector, isobus::CANMessageDataView, and isobus::CANMessageDataCallback.
|
pure virtual |
Get the byte at the given index.
[in] | index | The index of the byte to get. |
Implemented in isobus::CANMessageDataVector, isobus::CANMessageDataView, and isobus::CANMessageDataCallback.
|
pure virtual |
Get the size of the data.
Implemented in isobus::CANMessageDataVector, isobus::CANMessageDataView, and isobus::CANMessageDataCallback.