|
SmartSoft Component-Developer API
|
Handler class to process fired events asynchronously at the client. More...
#include <smartIEventClientPattern_T.h>
Public Member Functions | |
| IEventHandler (InputSubject< EventInputType< EventType > > *subject) | |
| virtual | ~IEventHandler ()=default |
| virtual void | handleEvent (const EventIdPtr &id, const EventType &event)=0 |
| Handler which is called by the event client pattern with every fired event. More... | |
Public Member Functions inherited from Smart::IInputHandler< EventInputType< EventType > > | |
| IInputHandler (InputSubject< EventInputType< EventType > > *subject, const unsigned int &prescaleFactor=1) | |
| The default constructor. More... | |
| virtual | ~IInputHandler () |
| The default destructor. More... | |
Protected Member Functions | |
| virtual void | handle_input (const EventInputType< EventType > &input) |
| implements IInputHandler More... | |
Protected Member Functions inherited from Smart::IInputHandler< EventInputType< EventType > > | |
| void | attach_self (const unsigned int &prescale=1) |
| calls subject->attach(this); More... | |
| void | detach_self () |
| calls subject->detach(this); More... | |
Additional Inherited Members | |
Protected Attributes inherited from Smart::IInputHandler< EventInputType< EventType > > | |
| InputSubject< EventInputType< EventType > > * | subject |
| this is the subject-pointer (can be used in derived classes) More... | |
Handler class to process fired events asynchronously at the client.
Register it with the constructor of the event client.
Template parameters:
Demonstrated in fifth example
|
inline |
|
virtualdefault |
|
inlineprotectedvirtual |
implements IInputHandler
This handler method delegates the call to the handleSend() method.
| input | the input data-object |
Implements Smart::IInputHandler< EventInputType< EventType > >.
|
pure virtual |
Handler which is called by the event client pattern with every fired event.
The handler method has to be provided by the user by subclassing.
| id | contains the activation id to be able to find out which activation caused the current event |
| event | is the event answer class (Communication Object) received due to the firing of the activation with identifier id. |
1.8.13