#include <StubPoolPluginImpl.h>
Inherits keyple::plugin::stub::StubPoolPlugin.
◆ StubPoolPluginImpl()
keyple::plugin::stub::StubPoolPluginImpl::StubPoolPluginImpl |
( |
const std::string & |
pluginName | ) |
|
|
explicit |
◆ allocateReader()
std::shared_ptr< SeReader > keyple::plugin::stub::StubPoolPluginImpl::allocateReader |
( |
const std::string & |
groupReference | ) |
|
|
overridevirtual |
Allocate a reader if available by groupReference
- Parameters
-
groupReference | the reference of the group to which the reader belongs (may be null depending on the implementation made) |
- Returns
- seReader if available, null otherwise
- Exceptions
-
KeypleAllocationReaderException | if the allocation failed due to a technical error |
KeypleAllocationNoReaderException | if the allocation failed due to lack of available reader |
Implements keyple::core::seproxy::ReaderPoolPlugin.
◆ getName()
const std::string & keyple::plugin::stub::StubPoolPluginImpl::getName |
( |
| ) |
const |
|
overridevirtual |
◆ getParameters()
const std::map< const std::string, const std::string > & keyple::plugin::stub::StubPoolPluginImpl::getParameters |
( |
| ) |
const |
|
overridevirtual |
◆ getReader()
const std::shared_ptr< SeReader > keyple::plugin::stub::StubPoolPluginImpl::getReader |
( |
const std::string & |
name | ) |
|
|
overridevirtual |
Gets the reader whose name is provided as an argument
- Parameters
-
- Returns
- the SeReader object.
- Exceptions
-
KeypleReaderNotFoundException | if the wanted reader is not found |
Implements keyple::core::seproxy::ReaderPlugin.
◆ getReaderGroupReferences()
std::set< std::string > keyple::plugin::stub::StubPoolPluginImpl::getReaderGroupReferences |
( |
| ) |
|
|
overridevirtual |
Gets a list of group references that will be used as an argument to allocateReader.
A group reference can represent a family of SeReader with all the same characteristics (e.g. SAM with identical key sets).
- Returns
- a list of String
Implements keyple::core::seproxy::ReaderPoolPlugin.
◆ getReaderNames()
const std::set< std::string > keyple::plugin::stub::StubPoolPluginImpl::getReaderNames |
( |
| ) |
const |
|
overridevirtual |
◆ getReaders()
ConcurrentMap< const std::string, std::shared_ptr< SeReader > > & keyple::plugin::stub::StubPoolPluginImpl::getReaders |
( |
| ) |
|
|
overridevirtual |
◆ listAllocatedReaders()
const std::map< const std::string, const std::string > & keyple::plugin::stub::StubPoolPluginImpl::listAllocatedReaders |
( |
| ) |
|
◆ plugStubPoolReader()
std::shared_ptr< SeReader > keyple::plugin::stub::StubPoolPluginImpl::plugStubPoolReader |
( |
const std::string & |
groupReference, |
|
|
const std::string & |
readerName, |
|
|
std::shared_ptr< StubSecureElement > |
se |
|
) |
| |
|
overridevirtual |
◆ releaseReader()
void keyple::plugin::stub::StubPoolPluginImpl::releaseReader |
( |
std::shared_ptr< SeReader > |
seReader | ) |
|
|
overridevirtual |
◆ setParameter()
void keyple::plugin::stub::StubPoolPluginImpl::setParameter |
( |
const std::string & |
key, |
|
|
const std::string & |
value |
|
) |
| |
|
overridevirtual |
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::ProxyElement.
◆ setParameters()
void keyple::plugin::stub::StubPoolPluginImpl::setParameters |
( |
const std::map< const std::string, const std::string > & |
parameters | ) |
|
|
overridevirtual |
allows to define a set of proprietary settings for a reader or a plugin (contactless protocols polling sequence, baud rate, … etc.).
- Parameters
-
parameters | Parameters to setup |
- Exceptions
-
IllegalArgumentException | if the parameters or the values is not supported |
KeypleException | if the parameter fails to be set up |
Reimplemented from keyple::core::seproxy::ProxyElement.
◆ unplugStubPoolReader()
void keyple::plugin::stub::StubPoolPluginImpl::unplugStubPoolReader |
( |
const std::string & |
groupReference | ) |
|
|
overridevirtual |
Unplug synchronously a new reader by groupReference. A READER_DISCONNECTED event will be raised.
- Parameters
-
groupReference | groupReference of the reader to be unplugged |
Implements keyple::plugin::stub::StubPoolPlugin.
◆ mAllocatedReader
std::map<const std::string, const std::string> keyple::plugin::stub::StubPoolPluginImpl::mAllocatedReader |
◆ mReaderPool
std::map<const std::string, std::shared_ptr<StubReaderImpl> > keyple::plugin::stub::StubPoolPluginImpl::mReaderPool |
groupReference, seReader = limitation each
◆ mStubPlugin
std::shared_ptr<StubPluginImpl> keyple::plugin::stub::StubPoolPluginImpl::mStubPlugin |
The documentation for this class was generated from the following files: