Keyple C++
0.9.0
Keyple, an Open Source SDK for Ticketing
|
#include <AbstractObservablePlugin.h>
Inherits keyple::core::seproxy::plugin::AbstractPlugin, and keyple::core::seproxy::plugin::ObservablePluginNotifier.
Inherited by keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin.
Public Member Functions | |
virtual void | addObserver (const std::shared_ptr< ObservablePlugin::PluginObserver > observer) override |
virtual void | removeObserver (const std::shared_ptr< ObservablePlugin::PluginObserver > observer) override |
virtual void | clearObservers () override |
virtual int | countObservers () const final |
virtual void | notifyObservers (const std::shared_ptr< PluginEvent > event) final |
![]() | |
virtual ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & | getReaders () override |
virtual const std::set< std::string > | getReaderNames () const override |
const std::shared_ptr< SeReader > | getReader (const std::string &name) final |
const std::string & | getName () const |
![]() | |
AbstractSeProxyComponent (const std::string &name) | |
virtual | ~AbstractSeProxyComponent ()=default |
const std::string & | getName () const |
void | setParameters (const std::map< const std::string, const std::string > ¶meters) |
virtual void | setParameter (const std::string &key, const std::string &value)=0 |
![]() | |
virtual | ~ReaderPlugin ()=default |
![]() | |
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) |
![]() | |
virtual | ~ObservablePluginNotifier ()=default |
![]() | |
virtual | ~ObservablePlugin ()=default |
virtual void | addObserver (const std::shared_ptr< PluginObserver > observer)=0 |
virtual void | removeObserver (const std::shared_ptr< PluginObserver > observer)=0 |
Protected Member Functions | |
AbstractObservablePlugin (const std::string &name) | |
virtual | ~AbstractObservablePlugin ()=default |
![]() | |
AbstractPlugin (const std::string &name) | |
virtual | ~AbstractPlugin ()=default |
virtual ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & | initNativeReaders ()=0 |
Additional Inherited Members | |
![]() | |
ConcurrentMap< const std::string, std::shared_ptr< SeReader > > | mNativeReaders |
The AbstractObservablePlugin class provides the means to observe a plugin (insertion/removal of readers).
|
explicitprotected |
Instantiates a observable plugin.
name | name of the plugin |
KeypleReaderException | when an issue is raised with reader |
|
protectedvirtualdefault |
|
overridevirtual |
Add a plugin observer.
The observer will receive all the events produced by this plugin (reader insertion, removal, etc.)
observer | the observer object |
Reimplemented in keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin.
|
overridevirtual |
Remove all observers at once
Implements keyple::core::seproxy::event::ObservablePlugin.
Reimplemented in keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin.
|
finalvirtual |
Implements keyple::core::seproxy::event::ObservablePlugin.
|
finalvirtual |
This method shall be called only from a SE Proxy plugin implementing AbstractPlugin. Push a PluginEvent of the selected AbstractPlugin to its registered Observer.
event | the event |
Implements keyple::core::seproxy::plugin::ObservablePluginNotifier.
|
overridevirtual |
Remove a plugin observer.
The observer will do not receive any of the events produced by this plugin.
observer | the observer object |
Reimplemented in keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin.