Menu

famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType > Class Template Reference

Subscriber Event Channel with fragmentation support in the application layer. More...

#include <AFPSubscriberEventChannel.h>

Public Member Functions

 AFPSubscriberEventChannel (const Subject &s, uint16_t mtu)
 Constructor.
 ~AFPSubscriberEventChannel ()
 Destructor.
void subscribe ()
 Subscribe this channel's subject.
const Subjectsubject () const
 Return this channel's subject.

Data Fields

famouso::util::Delegate< const
EventType & > 
callback
 This callback is called if an event occurs.

Detailed Description

template<class SEC, class AFPDC, class EventType = Event>
class famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >

Subscriber Event Channel with fragmentation support in the application layer.

Template Parameters:
AFPDC AFP defragmentation config
SEC Subscriber Event Channel

Constructor & Destructor Documentation

template<class SEC , class AFPDC , class EventType = Event>
famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >::AFPSubscriberEventChannel ( const Subject s,
uint16_t  mtu 
) [inline]

Constructor.

Parameters:
s Subject of the channel
mtu MTU to use for defragmentation. Should be same for all publisher/subscriber of this subject.
template<class SEC , class AFPDC , class EventType = Event>
famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >::~AFPSubscriberEventChannel (  )  [inline]

Destructor.


Member Function Documentation

template<class SEC , class AFPDC , class EventType = Event>
const Subject& famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >::subject (  )  const [inline]

Return this channel's subject.

template<class SEC , class AFPDC , class EventType = Event>
void famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >::subscribe (  )  [inline]

Subscribe this channel's subject.


Field Documentation

template<class SEC , class AFPDC , class EventType = Event>
famouso::util::Delegate<const EventType &> famouso::mw::afp::AFPSubscriberEventChannel< SEC, AFPDC, EventType >::callback

This callback is called if an event occurs.

It is a generic delegate which allows for using C-functions, normal as well as const class member functions.


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