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) 2024 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 https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <string>
13
15
16namespace keypop {
17namespace reader {
18
24class ConfigurableCardReader : virtual public CardReader {
25public:
29 virtual ~ConfigurableCardReader() = default;
30
58 virtual void activateProtocol(
59 const std::string& physicalProtocolName, const std::string& logicalProtocolName)
60 = 0;
61
75 virtual void deactivateProtocol(const std::string& physicalProtocolName) = 0;
76
84 virtual const std::string& getCurrentProtocol() const = 0;
85};
86
87} /* namespace reader */
88} /* 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