famouso::mw::api::SubscriberEventChannel< ECH > Class Template Reference
#include <SubscriberEventChannel.h>
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
famouso::mw::api::SubscriberEventChannel< ECH >::SubscriberEventChannel | ( | const Subject & | s | ) | [inline] |
famouso::mw::api::SubscriberEventChannel< ECH >::~SubscriberEventChannel | ( | ) | [inline] |
Member Function Documentation
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().
void famouso::mw::api::SubscriberEventChannel< ECH >::unsubscribe | ( | ) | [inline, protected] |
References famouso::mw::api::EventChannel< ECH >::ech(), and TRACE_FUNCTION.
Referenced by famouso::mw::api::SubscriberEventChannel< ECH >::~SubscriberEventChannel().
Field Documentation
famouso::mw::api::SECCallBack famouso::mw::api::SubscriberEventChannel< ECH >::callback |
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:
- include/mw/api/SubscriberEventChannel.h