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

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

#include <dnp3.hpp>

Inheritance diagram for dnp3::functional::LoggerLambda< T >:
dnp3::Logger

Public Member Functions

 LoggerLambda (const T &lambda)
 constructor More...
 
void on_message (LogLevel level, const char *message) override
 implement virtual method from base class More...
 
virtual void on_message (LogLevel level, const char *message)=0
 Called when a log message was received and should be logged. More...
 

Detailed Description

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

class that implements Logger in terms of a lambda expression

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

Constructor & Destructor Documentation

◆ LoggerLambda()

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

constructor

Parameters
lambdafunctor value on which to base the interface implementation

Member Function Documentation

◆ on_message()

template<class T >
void dnp3::functional::LoggerLambda< T >::on_message ( LogLevel  level,
const char *  message 
)
inlineoverridevirtual

implement virtual method from base class

Implements dnp3::Logger.


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