#include <ConfigurableCardReader.hpp>
Configurable card reader providing the methods to manage the card protocols.
- Since
- 1.0.0
Definition at line 24 of file ConfigurableCardReader.hpp.
◆ ~ConfigurableCardReader()
virtual keypop::reader::ConfigurableCardReader::~ConfigurableCardReader |
( |
| ) |
|
|
virtualdefault |
◆ activateProtocol()
virtual void keypop::reader::ConfigurableCardReader::activateProtocol |
( |
const std::string & |
physicalProtocolName, |
|
|
const std::string & |
logicalProtocolName |
|
) |
| |
|
pure virtual |
Activates the reader communication protocol by associating the provided physical communication protocol name and the logical communication protocol name defined by the application.
-
Activates the detection of cards using the provided reader communication protocol.
-
Internally associates the two strings provided as arguments.
The association between the communication protocol name known by the reader and the communication protocol name defined by the application is intended to manage non-ISO cards. It allows a unique protocol name to be set when constructing a card selector as defined by the Keypop Card API regardless of the type of reader that will be used.
- Parameters
-
physicalProtocolName | The name of the physical communication protocol as known by the reader. See the reader documentation for the list of supported communication protocols. |
logicalProtocolName | The name of the logical protocol associated with the cards detected with the physical protocol also provided. This name can be used by the application to perform filtering at the time of selection. |
- Exceptions
-
IllegalArgumentException | If one of the provided communication protocols is null or empty. |
ReaderProtocolNotSupportedException | If the reader communication protocol is not supported. |
- Since
- 1.0.0
◆ deactivateProtocol()
virtual void keypop::reader::ConfigurableCardReader::deactivateProtocol |
( |
const std::string & |
physicalProtocolName | ) |
|
|
pure virtual |
Deactivates the provided reader communication protocol. Inhibits the detection of cards using this reader communication protocol.
- Parameters
-
physicalProtocolName | The name of the physical communication protocol as known by the reader. See the reader documentation for the list of supported communication protocols. |
- Exceptions
-
IllegalArgumentException | If the provided reader communication protocol is null or empty. |
ReaderProtocolNotSupportedException | If the reader communication protocol is not supported. |
- Since
- 1.0.0
◆ getCurrentProtocol()
virtual const std::string & keypop::reader::ConfigurableCardReader::getCurrentProtocol |
( |
| ) |
const |
|
pure virtual |
The documentation for this class was generated from the following file: