#include <interface.h>
Public Types | |
typedef fastdelegate::FastDelegate1 < const Frame & > | FrameDelegate |
typedef Listener< const FrameDelegate, const Frame & > | FrameListener |
Public Member Functions | |
virtual FrameListener::Ptr | createMsgListener (const FrameDelegate &delegate)=0 |
virtual FrameListener::Ptr | createMsgListener (const Frame::Header &, const FrameDelegate &delegate)=0 |
virtual bool | send (const Frame &msg)=0 |
virtual | ~CommInterface () |
Definition at line 118 of file interface.h.
typedef fastdelegate::FastDelegate1<const Frame&> can::CommInterface::FrameDelegate |
Definition at line 120 of file interface.h.
typedef Listener<const FrameDelegate, const Frame&> can::CommInterface::FrameListener |
Definition at line 121 of file interface.h.
virtual can::CommInterface::~CommInterface | ( | ) | [inline, virtual] |
Definition at line 148 of file interface.h.
virtual FrameListener::Ptr can::CommInterface::createMsgListener | ( | const FrameDelegate & | delegate | ) | [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.
virtual FrameListener::Ptr can::CommInterface::createMsgListener | ( | const Frame::Header & | , |
const FrameDelegate & | delegate | ||
) | [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.
virtual bool can::CommInterface::send | ( | const Frame & | msg | ) | [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.