#include <AbstractPlugin.h>
Inherits keyple::core::seproxy::plugin::AbstractSeProxyComponent, and keyple::core::seproxy::ReaderPlugin.
Inherited by keyple::core::seproxy::plugin::AbstractObservablePlugin.
Observable plugin. These plugin can report when a reader is added or removed.
◆ AbstractPlugin()
keyple::core::seproxy::plugin::AbstractPlugin::AbstractPlugin |
( |
const std::string & |
name | ) |
|
|
explicitprotected |
Instanciates a new ReaderPlugin. Retrieve the current readers list.
Initialize the list of readers calling the abstract method initNativeReaders
When readers initialisation failed, a KeypleReaderException is thrown
- Parameters
-
- Exceptions
-
KeypleReaderException | when an issue is raised with reader |
◆ ~AbstractPlugin()
virtual keyple::core::seproxy::plugin::AbstractPlugin::~AbstractPlugin |
( |
| ) |
|
|
protectedvirtualdefault |
◆ getName()
const std::string & keyple::core::seproxy::plugin::AbstractSeProxyComponent::getName |
- Returns
- the name of the component
◆ getReader()
const std::shared_ptr< SeReader > keyple::core::seproxy::plugin::AbstractPlugin::getReader |
( |
const std::string & |
name | ) |
|
|
finalvirtual |
Gets a specific reader designated by its name in the current readers list
- Parameters
-
- Returns
- the reader
- Exceptions
-
KeypleReaderNotFoundException | if the wanted reader is not found |
Alex: once again the std::shared_ptr return type prevents us from using covariant return type. Downcasting to SeReader for now, but should be looked into, maybe returning a reference would could be best here?
Implements keyple::core::seproxy::ReaderPlugin.
◆ getReaderNames()
const std::set< std::string > keyple::core::seproxy::plugin::AbstractPlugin::getReaderNames |
( |
| ) |
const |
|
overridevirtual |
◆ getReaders()
ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & keyple::core::seproxy::plugin::AbstractPlugin::getReaders |
( |
| ) |
|
|
overridevirtual |
◆ initNativeReaders()
virtual ConcurrentMap<const std::string, std::shared_ptr<SeReader> >& keyple::core::seproxy::plugin::AbstractPlugin::initNativeReaders |
( |
| ) |
|
|
protectedpure virtual |
◆ mNativeReaders
ConcurrentMap<const std::string, std::shared_ptr<SeReader> > keyple::core::seproxy::plugin::AbstractPlugin::mNativeReaders |
|
protected |
C++ vs. Java: store list in class to avoid copy or move operations on ConcurrentMap
The documentation for this class was generated from the following files: