Public Types | Public Member Functions | List of all members
can::CommInterface Class Referenceabstract

#include <interface.h>

Inheritance diagram for can::CommInterface:
Inheritance graph
[legend]

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 ()
 

Detailed Description

Definition at line 126 of file interface.h.

Member Typedef Documentation

Definition at line 128 of file interface.h.

Definition at line 129 of file interface.h.

Definition at line 130 of file interface.h.

Constructor & Destructor Documentation

virtual can::CommInterface::~CommInterface ( )
inlinevirtual

Definition at line 157 of file interface.h.

Member Function Documentation

virtual FrameListenerConstSharedPtr can::CommInterface::createMsgListener ( const FrameDelegate delegate)
pure virtual

acquire a listener for the specified delegate, that will get called for all messages

Parameters
[in]delegatedelegate to be bound by the listener
Returns
managed pointer to listener

Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.

virtual FrameListenerConstSharedPtr 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

Parameters
[in]headerCAN header to restrict listener on
[in]delegatedelegate to be bound listener
Returns
managed pointer to 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

Parameters
[in]msgmessage to be enqueued
Returns
true if frame was enqueued succesfully, otherwise false

Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.


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


socketcan_interface
Author(s): Mathias Lüdtke
autogenerated on Fri May 14 2021 02:59:39