#include <interface.h>
Public Types | |
using | FrameDelegate = DelegateHelper< FrameFunc > |
using | FrameFunc = std::function< void(const Frame &)> |
using | FrameListener = Listener< const FrameFunc, const Frame & > |
using | FrameListenerConstSharedPtr = FrameListener::ListenerConstSharedPtr |
Public Member Functions | |
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &, const FrameFunc &delegate)=0 |
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameFunc &delegate)=0 |
template<typename Instance , typename Callable > | |
FrameListenerConstSharedPtr | createMsgListenerM (const Frame::Header &header, Instance inst, Callable callable) |
template<typename Instance , typename Callable > | |
FrameListenerConstSharedPtr | createMsgListenerM (Instance inst, Callable callable) |
virtual bool | send (const Frame &msg)=0 |
virtual | ~CommInterface () |
Definition at line 135 of file interface.h.
Definition at line 138 of file interface.h.
using can::CommInterface::FrameFunc = std::function<void(const Frame&)> |
Definition at line 137 of file interface.h.
using can::CommInterface::FrameListener = Listener<const FrameFunc, const Frame&> |
Definition at line 139 of file interface.h.
Definition at line 140 of file interface.h.
|
inlinevirtual |
Definition at line 173 of file interface.h.
|
pure virtual |
acquire a listener for the specified delegate, that will get called for messages with demanded ID
[in] | header | CAN header to restrict listener on |
[in] | delegate | delegate to be bound listener |
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.
|
pure virtual |
acquire a listener for the specified delegate, that will get called for all messages
[in] | delegate | delegate to be bound by the listener |
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.
|
inline |
Definition at line 169 of file interface.h.
|
inline |
Definition at line 157 of file interface.h.
|
pure virtual |
enqueue frame for sending
[in] | msg | message to be enqueued |
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.