#include <PcscPluginImpl.h>
Inherits keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin, and keyple::plugin::pcsc::PcscPlugin.
◆ fetchNativeReader()
std::shared_ptr< SeReader > keyple::plugin::pcsc::PcscPluginImpl::fetchNativeReader |
( |
const std::string & |
name | ) |
|
|
overrideprotectedvirtual |
Fetch the reader whose name is provided as an argument. Returns the current reader if it is already listed. Creates and returns a new reader if not.
Throws an exception if the wanted reader is not found.
- Parameters
-
- Returns
- the reader object
- Exceptions
-
KeypleReaderNotFoundException | if a reader is not found by its name |
KeypleReaderIOException | if the communication with the reader or the SE has failed |
Implements keyple::core::seproxy::plugin::AbstractThreadedObservablePlugin.
◆ fetchNativeReadersNames()
const std::set< std::string > & keyple::plugin::pcsc::PcscPluginImpl::fetchNativeReadersNames |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ getInstance()
std::shared_ptr< PcscPluginImpl > keyple::plugin::pcsc::PcscPluginImpl::getInstance |
( |
| ) |
|
|
static |
Gets the single instance of PcscPlugin.
- Returns
- single instance of PcscPlugin
- Exceptions
-
KeypleReaderException | if a reader error occurs |
◆ getName()
virtual const std::string& keyple::plugin::pcsc::PcscPluginImpl::getName |
( |
| ) |
const |
|
inlinefinalvirtual |
◆ getParameters()
const std::map< const std::string, const std::string > & keyple::plugin::pcsc::PcscPluginImpl::getParameters |
( |
| ) |
const |
|
overridevirtual |
◆ initNativeReaders()
ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & keyple::plugin::pcsc::PcscPluginImpl::initNativeReaders |
( |
| ) |
|
|
overrideprotectedvirtual |
◆ setParameter()
void keyple::plugin::pcsc::PcscPluginImpl::setParameter |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
overridevirtual |
This method has to be implemented by the reader plugin.
Allows to define a proprietary setting for a reader or a plugin (contactless protocols polling sequence, baud rate, … etc.).
- Parameters
-
key | the parameter key |
value | the parameter value |
- Exceptions
-
IllegalArgumentException | if the parameter or the value is not supported |
KeypleReaderIOException | if the communication with the reader or the SE has failed |
Implements keyple::core::seproxy::plugin::AbstractSeProxyComponent.
◆ setParameters()
virtual void keyple::plugin::pcsc::PcscPluginImpl::setParameters |
( |
const std::map< const std::string, const std::string > & |
parameters | ) |
|
|
inlinefinalvirtual |
◆ nativeReadersNames
std::set<std::string> keyple::plugin::pcsc::PcscPluginImpl::nativeReadersNames |
The documentation for this class was generated from the following files: