Menu

famouso::mw::api::SubscriberEventChannel< ECH > Class Template Reference

#include <SubscriberEventChannel.h>

Inheritance diagram for famouso::mw::api::SubscriberEventChannel< ECH >:
famouso::mw::api::EventChannel< ECH > Chain famouso::mw::gwl::Gateway< ECH, Storage > famouso::mw::gwl::GatewayEventChannel< ECH >

Public Member Functions

 SubscriberEventChannel (const Subject &s)
 ~SubscriberEventChannel ()
void subscribe ()
 subscribe the event channel and reserve resources and call the needed functionalities within the sublayers to bind the subject etc.

Data Fields

famouso::mw::api::SECCallBack callback
 This callback is called if an event occurs.

Protected Member Functions

void unsubscribe ()

template<class ECH>
class famouso::mw::api::SubscriberEventChannel< ECH >


Constructor & Destructor Documentation

template<class ECH>
famouso::mw::api::SubscriberEventChannel< ECH >::SubscriberEventChannel ( const Subject s  )  [inline]

Member Function Documentation

template<class ECH>
void famouso::mw::api::SubscriberEventChannel< ECH >::subscribe (  )  [inline]

subscribe the event channel and reserve resources and call the needed functionalities within the sublayers to bind the subject etc.

See also:
EventLayer::subscribe
AbstractNetworkLayer::subscribe

References famouso::util::Delegate< parameter, R >::bind(), famouso::mw::api::SubscriberEventChannel< ECH >::callback, famouso::mw::api::cb(), famouso::mw::api::EventChannel< ECH >::ech(), and TRACE_FUNCTION.

Referenced by famouso::mw::gwl::Gateway< ECH, Storage >::Gateway().


Field Documentation

This callback is called if an event occurs.

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

Referenced by famouso::mw::gwl::Gateway< ECH, Storage >::Gateway(), famouso::mw::gwl::GatewayEventChannel< ECH >::GatewayEventChannel(), and famouso::mw::api::SubscriberEventChannel< ECH >::subscribe().


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