Kanzi Connect  3.9.9
Kanzi Connect C++ API
kanzi::connect::GenericSyncObserver< FunctionArgs > Class Template Reference

Generic observer which can be used to receive notification from GenericSyncPublisher, callback function arguments are template arguments. More...

#include <genericsyncobserver.hpp>

Public Member Functions

 GenericSyncObserver (function< void(FunctionArgs &&...)> actualCallback)
 Constructor. More...
 
void notify (FunctionArgs &&... args)
 Notification used by the publisher. More...
 
virtual ~GenericSyncObserver ()=default
 dtor More...
 

Detailed Description

template<typename... FunctionArgs>
class kanzi::connect::GenericSyncObserver< FunctionArgs >

Generic observer which can be used to receive notification from GenericSyncPublisher, callback function arguments are template arguments.

Constructor & Destructor Documentation

◆ GenericSyncObserver()

template<typename... FunctionArgs>
kanzi::connect::GenericSyncObserver< FunctionArgs >::GenericSyncObserver ( function< void(FunctionArgs &&...)>  actualCallback)
inlineexplicit

Constructor.

Parameters
actualCallbackFunction in the interested party that will be called when publisher publishes

◆ ~GenericSyncObserver()

template<typename... FunctionArgs>
virtual kanzi::connect::GenericSyncObserver< FunctionArgs >::~GenericSyncObserver ( )
virtualdefault

dtor

Member Function Documentation

◆ notify()

template<typename... FunctionArgs>
void kanzi::connect::GenericSyncObserver< FunctionArgs >::notify ( FunctionArgs &&...  args)
inline

Notification used by the publisher.

Parameters
argsThe function arguments passed to the actual callback

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