yarp-devices
Public Member Functions | Private Attributes | List of all members
roboticslab::test::FakeCanSenderDelegate Class Reference

Stores registered fake CAN messages and eases access to them.

Inheritance diagram for roboticslab::test::FakeCanSenderDelegate:
roboticslab::ICanSenderDelegate

Public Member Functions

bool prepareMessage (const can_message &msg) override
 Store message data internally.
 
void reportAvailability (bool available, unsigned int id) override
 Report availability of CAN node.
 
const fake_messagegetLastMessage () const
 Retrieve last message.
 
const fake_messagegetMessage (std::size_t n) const
 Retrieve message at specified index.
 
void flush ()
 Empties internal message registry.
 
- Public Member Functions inherited from roboticslab::ICanSenderDelegate
virtual ~ICanSenderDelegate ()=default
 Virtual destructor.
 

Private Attributes

std::vector< fake_messagemessages
 

The documentation for this class was generated from the following file: