#include <interface.h>
Public Types | |
using | StateDelegate = DelegateHelper< StateFunc > |
using | StateFunc = std::function< void(const State &)> |
using | StateListener = Listener< const StateFunc, const State & > |
using | StateListenerConstSharedPtr = StateListener::ListenerConstSharedPtr |
Public Member Functions | |
virtual StateListenerConstSharedPtr | createStateListener (const StateFunc &delegate)=0 |
template<typename Instance , typename Callable > | |
StateListenerConstSharedPtr | createStateListenerM (Instance inst, Callable callable) |
virtual | ~StateInterface () |
Definition at line 112 of file interface.h.
Definition at line 115 of file interface.h.
using can::StateInterface::StateFunc = std::function<void(const State&)> |
Definition at line 114 of file interface.h.
using can::StateInterface::StateListener = Listener<const StateFunc, const State&> |
Definition at line 116 of file interface.h.
Definition at line 117 of file interface.h.
|
inlinevirtual |
Definition at line 130 of file interface.h.
|
pure 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 |
Implemented in can::AsioDriver< Socket >, can::AsioDriver< boost::asio::posix::stream_descriptor >, and can::DummyInterface.
|
inline |
Definition at line 126 of file interface.h.