dnp3 (C++ API) 1.1.0
dnp3::functional::ClientStateListenerLambda< T > Class Template Referencefinal

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

#include <dnp3.hpp>

Inheritance diagram for dnp3::functional::ClientStateListenerLambda< T >:
dnp3::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 dnp3::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 >
dnp3::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 dnp3::functional::ClientStateListenerLambda< T >::on_change ( ClientState  state)
inlineoverridevirtual

implement virtual method from base class

Implements dnp3::ClientStateListener.


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