rad 8.2.0
Loading...
Searching...
No Matches
scxml4cpp::EventListener Class Referenceabstract

#include <EventListener.h>

Inheritance diagram for scxml4cpp::EventListener:
Scxml4cppListener rad::SMAdapter server::ActionsStd rad::Application rad::utest::Application

Public Member Functions

 EventListener ()
 
virtual ~EventListener ()
 
virtual void notifyEvent (Event *e)=0
 

Detailed Description

This class is an interface to implement event listeners.

The State Machine interpreter after processing an event notifies all registered event listeners on which event has been processed.

This notification can be used, for example, to monitor the change of state due to an event. The listener, after receiving the notification, can query the interpreter for the current state.

Constructor & Destructor Documentation

◆ EventListener()

scxml4cpp::EventListener::EventListener ( )
inline

Creates an event listener.

◆ ~EventListener()

virtual scxml4cpp::EventListener::~EventListener ( )
inlinevirtual

Member Function Documentation

◆ notifyEvent()

virtual void scxml4cpp::EventListener::notifyEvent ( Event * e)
pure virtual

This method is invoked by the State Machine interpreter when an event has been processed.

Parameters
eProcessed event.

Implemented in Scxml4cppListener, and server::ActionsStd.


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