#include <dummy.h>

Public Member Functions | |
| bool | add (const std::string &k, const Frame &v, bool multi) |
| bool | add (const Frame &k, const Frame &v, bool multi) |
| bool | add (const std::string &k, const std::string &v, bool multi) |
| bool | add (const Frame &k, const std::string &v, bool multi) |
| virtual FrameListener::Ptr | createMsgListener (const FrameDelegate &delegate) |
| virtual FrameListener::Ptr | createMsgListener (const Frame::Header &h, const FrameDelegate &delegate) |
| virtual StateListener::Ptr | createStateListener (const StateDelegate &delegate) |
| virtual bool | doesLoopBack () const |
| DummyInterface (bool loopback) | |
| virtual State | getState () |
| bool | init (const std::string &device, bool loopback) |
| virtual bool | recover () |
| virtual void | run () |
| virtual bool | send (const Frame &msg) |
| virtual void | shutdown () |
| virtual bool | translateError (unsigned int internal_error, std::string &str) |
Private Types | |
| typedef FilteredDispatcher < const unsigned int, CommInterface::FrameListener > | FrameDispatcher |
| typedef boost::unordered_multimap < std::string, Frame > | Map |
| typedef SimpleDispatcher < StateInterface::StateListener > | StateDispatcher |
Private Member Functions | |
| bool | add_noconv (const std::string &k, const Frame &v, bool multi) |
Private Attributes | |
| FrameDispatcher | frame_dispatcher_ |
| bool | loopback_ |
| Map | map_ |
| State | state_ |
| StateDispatcher | state_dispatcher_ |
typedef FilteredDispatcher<const unsigned int, CommInterface::FrameListener> can::DummyInterface::FrameDispatcher [private] |
typedef boost::unordered_multimap<std::string, Frame> can::DummyInterface::Map [private] |
typedef SimpleDispatcher<StateInterface::StateListener> can::DummyInterface::StateDispatcher [private] |
| can::DummyInterface::DummyInterface | ( | bool | loopback | ) | [inline] |
| bool can::DummyInterface::add | ( | const std::string & | k, |
| const Frame & | v, | ||
| bool | multi | ||
| ) | [inline] |
| bool can::DummyInterface::add | ( | const Frame & | k, |
| const Frame & | v, | ||
| bool | multi | ||
| ) | [inline] |
| bool can::DummyInterface::add | ( | const std::string & | k, |
| const std::string & | v, | ||
| bool | multi | ||
| ) | [inline] |
| bool can::DummyInterface::add | ( | const Frame & | k, |
| const std::string & | v, | ||
| bool | multi | ||
| ) | [inline] |
| bool can::DummyInterface::add_noconv | ( | const std::string & | k, |
| const Frame & | v, | ||
| bool | multi | ||
| ) | [inline, private] |
| virtual FrameListener::Ptr can::DummyInterface::createMsgListener | ( | const FrameDelegate & | delegate | ) | [inline, virtual] |
acquire a listener for the specified delegate, that will get called for all messages
| [in] | delegate,: | delegate to be bound by the listener |
Implements can::CommInterface.
| virtual FrameListener::Ptr can::DummyInterface::createMsgListener | ( | const Frame::Header & | , |
| const FrameDelegate & | delegate | ||
| ) | [inline, 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 |
Implements can::CommInterface.
| virtual StateListener::Ptr can::DummyInterface::createStateListener | ( | const StateDelegate & | delegate | ) | [inline, virtual] |
acquire a listener for the specified delegate, that will get called for all state changes
| [in] | delegate,: | delegate to be bound by the listener |
Implements can::StateInterface.
| virtual bool can::DummyInterface::doesLoopBack | ( | ) | const [inline, virtual] |
Implements can::DriverInterface.
| virtual State can::DummyInterface::getState | ( | ) | [inline, virtual] |
Implements can::DriverInterface.
| bool can::DummyInterface::init | ( | const std::string & | device, |
| bool | loopback | ||
| ) | [inline, virtual] |
initialize interface
| [in] | device,: | driver-specific device name/path |
| [in] | loopback,: | loop-back own messages |
Implements can::DriverInterface.
| virtual bool can::DummyInterface::recover | ( | ) | [inline, virtual] |
Recover interface after errors and emergency stops
Implements can::DriverInterface.
| virtual void can::DummyInterface::run | ( | ) | [inline, virtual] |
Implements can::DriverInterface.
| virtual bool can::DummyInterface::send | ( | const Frame & | msg | ) | [inline, virtual] |
enqueue frame for sending
| [in] | msg,: | message to be enqueued |
Implements can::CommInterface.
| virtual void can::DummyInterface::shutdown | ( | ) | [inline, virtual] |
shutdown interface
Implements can::DriverInterface.
| virtual bool can::DummyInterface::translateError | ( | unsigned int | internal_error, |
| std::string & | str | ||
| ) | [inline, virtual] |
Implements can::DriverInterface.
bool can::DummyInterface::loopback_ [private] |
Map can::DummyInterface::map_ [private] |
State can::DummyInterface::state_ [private] |