Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <AbstractMonitoringJob.h>
Inherited by keyple::core::seproxy::plugin::CardAbsentPingMonitoringJob, keyple::core::seproxy::plugin::CardPresentMonitoringJob, keyple::core::seproxy::plugin::SmartInsertionMonitoringJob, and keyple::core::seproxy::plugin::SmartRemovalMonitoringJob.
Public Member Functions | |
AbstractMonitoringJob () | |
virtual | ~AbstractMonitoringJob () |
virtual std::future< void > | startMonitoring (AbstractObservableState *state, std::atomic< bool > &cancellationFlag)=0 |
virtual void | stop () |
bool | isRunning () const |
Protected Attributes | |
std::atomic< bool > | mRunning |
Monitoring jobs abstract class.
Observable readers can instantiate AbstractMonitoringJob to perform background processing during the different states of the generic state machine.
Internal events (keyple::core::seproxy::plugin::InternalEvent) can be fired to change the state of the machine via the AbstractObservableState class passed as a constructor's argument.
Standard AbstractMonitoringJob are already defined in the local.monitoring package but it is possible to define new ones within a plugin reader if necessary, implementing this abstract class.
|
inline |
|
inlinevirtual |
|
inline |
|
pure virtual |
|
inlinevirtual |
Should stop/interrupt the monitoring job
C++ vs. Java: should be pure virtual, but couln't call it from destructor
Reimplemented in keyple::core::seproxy::plugin::SmartRemovalMonitoringJob, keyple::core::seproxy::plugin::SmartInsertionMonitoringJob, keyple::core::seproxy::plugin::CardPresentMonitoringJob, and keyple::core::seproxy::plugin::CardAbsentPingMonitoringJob.
|
protected |
C++ vs. Java: running flag