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

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

#include <dnp3.hpp>

Inheritance diagram for dnp3::functional::DatabaseTransactionLambda< T >:
dnp3::DatabaseTransaction

Public Member Functions

 DatabaseTransactionLambda (const T &lambda)
 constructor More...
 
void execute (Database &database) override
 implement virtual method from base class More...
 
virtual void execute (Database &database)=0
 Execute a transaction on the provided database. More...
 

Detailed Description

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

class that implements DatabaseTransaction in terms of a lambda expression

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

Constructor & Destructor Documentation

◆ DatabaseTransactionLambda()

template<class T >
dnp3::functional::DatabaseTransactionLambda< T >::DatabaseTransactionLambda ( const T &  lambda)
inline

constructor

Parameters
lambdafunctor value on which to base the interface implementation

Member Function Documentation

◆ execute()

template<class T >
void dnp3::functional::DatabaseTransactionLambda< T >::execute ( Database database)
inlineoverridevirtual

implement virtual method from base class

Implements dnp3::DatabaseTransaction.


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