rodbus (C++ API) 1.3.1
Loading...
Searching...
No Matches
rodbus::functional::ClientStateListenerLambda< T > Class Template Referencefinal

class that implements ClientStateListener in terms of a lambda expression More...

#include <rodbus.hpp>

Inheritance diagram for rodbus::functional::ClientStateListenerLambda< T >:
rodbus::ClientStateListener

Public Member Functions

 ClientStateListenerLambda (const T &lambda)
 constructor More...
 
void on_change (ClientState state) override
 implement virtual method from base class More...
 
virtual void on_change (ClientState state)=0
 Called when the client state changed. More...
 

Detailed Description

template<class T>
class rodbus::functional::ClientStateListenerLambda< T >

class that implements ClientStateListener in terms of a lambda expression

Note
this class can only be constructed using client_state_listener() helper function

Constructor & Destructor Documentation

◆ ClientStateListenerLambda()

template<class T >
rodbus::functional::ClientStateListenerLambda< T >::ClientStateListenerLambda ( const T &  lambda)
inline

constructor

Parameters
lambdafunctor value on which to base the interface implementation

Member Function Documentation

◆ on_change()

template<class T >
void rodbus::functional::ClientStateListenerLambda< T >::on_change ( ClientState  state)
inlineoverridevirtual

implement virtual method from base class

Implements rodbus::ClientStateListener.


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