Keypop Reader C++ API 2.0.0
Reference Reader API for C++
Public Member Functions | List of all members
keypop::reader::CardReader Class Referenceabstract

#include <CardReader.hpp>

Inheritance diagram for keypop::reader::CardReader:
Inheritance graph
[legend]

Public Member Functions

virtual ~CardReader ()=default
 
virtual const std::string & getName () const =0
 
virtual bool isContactless ()=0
 
virtual bool isCardPresent ()=0
 

Detailed Description

Card reader driving the underlying hardware to manage the card detection.

Since
1.0.0

Definition at line 22 of file CardReader.hpp.

Constructor & Destructor Documentation

◆ ~CardReader()

virtual keypop::reader::CardReader::~CardReader ( )
virtualdefault

Member Function Documentation

◆ 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
ReaderCommunicationExceptionIf the communication with the reader has failed.
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: