Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <ObservableReaderNotifier.h>
Inherits keyple::core::seproxy::event::ObservableReader.
Inherited by keyple::core::seproxy::plugin::AbstractObservableLocalReader [virtual]
, keyple::core::seproxy::plugin::SmartInsertionReader [virtual]
, and keyple::core::seproxy::plugin::SmartRemovalReader [virtual]
.
Public Member Functions | |
ObservableReaderNotifier () | |
virtual | ~ObservableReaderNotifier () |
virtual void | notifyObservers (const std::shared_ptr< ReaderEvent > event)=0 |
![]() | |
virtual | ~ObservableReader ()=default |
virtual void | addObserver (const std::shared_ptr< ReaderObserver > observer)=0 |
virtual void | removeObserver (const std::shared_ptr< ReaderObserver > observer)=0 |
virtual void | clearObservers ()=0 |
virtual int | countObservers () const =0 |
virtual void | startSeDetection (const PollingMode pollingMode)=0 |
virtual void | stopSeDetection ()=0 |
virtual void | setDefaultSelectionRequest (std::shared_ptr< AbstractDefaultSelectionsRequest > defaultSelectionsRequest, const NotificationMode ¬ificationMode)=0 |
virtual void | setDefaultSelectionRequest (std::shared_ptr< AbstractDefaultSelectionsRequest >defaultSelectionsRequest, const NotificationMode ¬ificationMode, const PollingMode pollingMode)=0 |
virtual void | finalizeSeProcessing ()=0 |
![]() | |
virtual | ~SeReader () |
virtual bool | isSePresent ()=0 |
virtual void | addSeProtocolSetting (std::shared_ptr< SeProtocol > seProtocol, const std::string &protocolRule)=0 |
virtual void | setSeProtocolSetting (const std::map< std::shared_ptr< SeProtocol >, std::string > &protocolSetting)=0 |
virtual const TransmissionMode & | getTransmissionMode () const =0 |
virtual bool | operator== (const SeReader &o) const |
![]() | |
virtual | ~ProxyElement ()=default |
virtual const std::string & | getName () const =0 |
virtual const std::map< const std::string, const std::string > & | getParameters () const =0 |
virtual void | setParameter (const std::string &key, const std::string &value)=0 |
virtual void | setParameters (const std::map< const std::string, const std::string > ¶meters) |
Public Attributes | |
std::atomic< bool > | mShuttingDown |
Additional Inherited Members | |
![]() | |
enum | PollingMode { PollingMode::REPEATING, PollingMode::SINGLESHOT } |
The keyple::core::seproxy::plugin::ObservableReaderNotifier interface provides the API to notify the observers of a keyple::core::seproxy::event::ObservableReader
|
inline |
|
inlinevirtual |
|
pure virtual |
Push a ReaderEvent of the keyple::core::seproxy::plugin::ObservableReaderNotifier to its registered observers.
event | the event (see keyple::core::seproxy::event::ReaderEvent) |
Implemented in keyple::core::seproxy::plugin::AbstractObservableLocalReader.
std::atomic<bool> keyple::core::seproxy::plugin::ObservableReaderNotifier::mShuttingDown |
C++ vs. Java: added this flag to handle threads gracefully