Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
CardReader.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the MIT License which is available at *
9 * https://opensource.org/licenses/MIT *
10 * *
11 * SPDX-License-Identifier: MIT *
12 ******************************************************************************/
13
14#pragma once
15
16#include <string>
17
18namespace keypop {
19namespace reader {
20
27public:
31 virtual ~CardReader() = default;
32
39 virtual const std::string& getName() const = 0;
40
50 virtual bool isContactless() = 0;
51
60 virtual bool isCardPresent() = 0;
61};
62
63} /* namespace reader */
64} /* namespace keypop */
Card reader driving the underlying hardware to manage the card detection.
Definition: CardReader.hpp:26
virtual const std::string & getName() const =0
Returns the name of the reader.
virtual bool isCardPresent()=0
Checks if the card is present.
virtual bool isContactless()=0
Checks if the card communication mode is contactless.
virtual ~CardReader()=default