AceSmartSoft API Documentation
Public Member Functions | List of all members
SmartACE::EventHandler< E > Class Template Referenceabstract

Handler class to process fired events asynchronously at the client. More...

#include <smartEvent.hh>

Inheritance diagram for SmartACE::EventHandler< E >:

Public Member Functions

template<class P >
 EventHandler (EventClient< P, E > *client)
 
virtual ~EventHandler ()
 
virtual void handleEvent (const Smart::EventIdPtr &id, const E &event)=0
 Handler which is called by the event client pattern with every fired event. More...
 

Detailed Description

template<class E>
class SmartACE::EventHandler< E >

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

Constructor & Destructor Documentation

◆ EventHandler()

template<class E >
template<class P >
SmartACE::EventHandler< E >::EventHandler ( EventClient< P, E > *  client)
inline

◆ ~EventHandler()

template<class E >
virtual SmartACE::EventHandler< E >::~EventHandler ( )
inlinevirtual

Member Function Documentation

◆ handleEvent()

template<class E >
virtual void SmartACE::EventHandler< E >::handleEvent ( const Smart::EventIdPtr &  id,
const E &  event 
)
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.

Parameters
idcontains the activation id to be able to find out which activation caused the current event
eventis the event answer class (Communication Object) received due to the firing of the activation with identifier id.

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