#include <interface.h>
Public Types | |
typedef fastdelegate::FastDelegate1< const Frame & > | FrameDelegate |
typedef Listener< const FrameDelegate, const Frame & > | FrameListener |
typedef FrameListener::ListenerConstSharedPtr | FrameListenerConstSharedPtr |
Public Member Functions | |
virtual FrameListenerConstSharedPtr | createMsgListener (const FrameDelegate &delegate)=0 |
virtual FrameListenerConstSharedPtr | createMsgListener (const Frame::Header &, const FrameDelegate &delegate)=0 |
virtual bool | send (const Frame &msg)=0 |
virtual | ~CommInterface () |
Definition at line 126 of file interface.h.
typedef fastdelegate::FastDelegate1<const Frame&> can::CommInterface::FrameDelegate |
Definition at line 128 of file interface.h.
typedef Listener<const FrameDelegate, const Frame&> can::CommInterface::FrameListener |
Definition at line 129 of file interface.h.
Definition at line 130 of file interface.h.
|
inlinevirtual |
Definition at line 157 of file interface.h.
|
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.
|
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 |
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.