GenericSyncObserver

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

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

Public Functions

GenericSyncObserver(function<void(FunctionArgs&&...)> actualCallback)

Constructor.

Parameters
  • actualCallback: Function in the interested party that will be called when publisher publishes

~GenericSyncObserver() = default

dtor

void notify(FunctionArgs&&... args)

Notification used by the publisher.

Parameters
  • args: The function arguments passed to the actual callback