Template Function iox::popo::createNotificationCallback(void(&)(OriginType *const, ContextDataType *const), ContextDataType&)

Function Documentation

template<typename OriginType, typename ContextDataType>
NotificationCallback<OriginType, ContextDataType> iox::popo::createNotificationCallback(void (&callback)(OriginType*const, ContextDataType*const), ContextDataType &userValue) noexcept

creates an NotificationCallback with a user defined value

Parameters:
  • callback[in] reference to a callback with the signature void(OriginType*, ContextDataType*)

  • userValue[in] reference to a user defined value

Returns:

the callback and user value stored inside of an NotificationCallback