yarp-devices
Loading...
Searching...
No Matches
ICanMessageNotifier.hpp
1// -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2
3#ifndef __I_CAN_MESSAGE_NOTIFIER_HPP__
4#define __I_CAN_MESSAGE_NOTIFIER_HPP__
5
6#include "CanMessage.hpp"
7
8namespace roboticslab
9{
10
22{
23public:
25 virtual ~ICanMessageNotifier() = default;
26
28 virtual bool notifyMessage(const can_message & msg) = 0;
29};
30
31} // namespace roboticslab
32
33#endif // __I_CAN_MESSAGE_NOTIFIER_HPP__
Implementation-agnostic consumer for RX CAN transfers.
Definition ICanMessageNotifier.hpp:22
virtual ~ICanMessageNotifier()=default
Virtual destructor.
virtual bool notifyMessage(const can_message &msg)=0
Notify observers that a new CAN message has arrived.
The main, catch-all namespace for Robotics Lab UC3M.
Definition groups.dox:6
Proxy CAN message structure.
Definition CanMessage.hpp:20