Keypop Reader C++ API 2.0.0
Reference Reader API for C++
ConfigurableCardReader.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <string>
14
16
17namespace keypop {
18namespace reader {
19
25class ConfigurableCardReader : virtual public CardReader {
26public:
30 virtual ~ConfigurableCardReader() = default;
31
62 virtual void activateProtocol(
63 const std::string& physicalProtocolName,
64 const std::string& logicalProtocolName)
65 = 0;
66
80 virtual void deactivateProtocol(const std::string& physicalProtocolName)
81 = 0;
82
91 virtual const std::string& getCurrentProtocol() const = 0;
92};
93
94} /* namespace reader */
95} /* namespace keypop */
virtual void activateProtocol(const std::string &physicalProtocolName, const std::string &logicalProtocolName)=0
virtual const std::string & getCurrentProtocol() const =0
virtual void deactivateProtocol(const std::string &physicalProtocolName)=0