#include <CardReader.hpp>
Card reader driving the underlying hardware to manage the card detection.
- Since
- 1.0.0
Definition at line 22 of file CardReader.hpp.
◆ ~CardReader()
virtual keypop::reader::CardReader::~CardReader |
( |
| ) |
|
|
virtualdefault |
◆ getName()
virtual const std::string & keypop::reader::CardReader::getName |
( |
| ) |
const |
|
pure virtual |
Returns the name of the reader.
- Returns
- A non-empty string containing the name of the reader.
- Since
- 1.0.0
◆ isCardPresent()
virtual bool keypop::reader::CardReader::isCardPresent |
( |
| ) |
|
|
pure virtual |
Checks if the card is present.
- Returns
- true if a card is inserted in the reader else false.
- Exceptions
-
- Since
- 1.0.0
◆ isContactless()
virtual bool keypop::reader::CardReader::isContactless |
( |
| ) |
|
|
pure virtual |
Checks if the card communication mode is contactless.
C++ note: this function cannot be set 'const' as some derived classes will set internal flags accordingly.
- Returns
- true if the communication mode is contactless else false
- Since
- 1.0.0
The documentation for this class was generated from the following file: