Public Types | Public Member Functions
can::CommInterface Class Reference

#include <interface.h>

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

List of all members.

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

Detailed Description

Definition at line 118 of file interface.h.


Member Typedef Documentation

Definition at line 120 of file interface.h.

Definition at line 121 of file interface.h.


Constructor & Destructor Documentation

virtual can::CommInterface::~CommInterface ( ) [inline, virtual]

Definition at line 148 of file interface.h.


Member Function Documentation

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

Parameters:
[in]delegate,:delegate 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 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

Parameters:
[in]header,:CAN header to restrict listener on
[in]delegate,:delegate 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]msg,:message 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 Sun Sep 3 2017 03:10:38