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

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

#include <dnp3.hpp>

Inheritance diagram for dnp3::functional::ConnectionStateListenerLambda< T >:
dnp3::ConnectionStateListener

Public Member Functions

 ConnectionStateListenerLambda (const T &lambda)
 constructor More...
 
void on_change (ConnectionState state) override
 implement virtual method from base class More...
 
virtual void on_change (ConnectionState state)=0
 Called when the connection state changes. More...
 

Detailed Description

template<class T>
class dnp3::functional::ConnectionStateListenerLambda< T >

class that implements ConnectionStateListener in terms of a lambda expression

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

Constructor & Destructor Documentation

◆ ConnectionStateListenerLambda()

template<class T >
dnp3::functional::ConnectionStateListenerLambda< T >::ConnectionStateListenerLambda ( 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::ConnectionStateListenerLambda< T >::on_change ( ConnectionState  state)
inlineoverridevirtual

implement virtual method from base class

Implements dnp3::ConnectionStateListener.


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