Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
CardSelector.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
19
20namespace keypop {
21namespace reader {
22namespace selection {
23
25
40template <typename T>
42public:
46 virtual ~CardSelector() = default;
47
70 virtual T& filterByCardProtocol(const std::string& logicalProtocolName) = 0;
71
82 virtual T& filterByPowerOnData(const std::string& powerOnDataRegex) = 0;
83};
84
85} /* namespace selection */
86} /* namespace reader */
87} /* namespace keypop */
Common filters used to restrict the selection process to certain cards.
virtual ~CardSelector()=default
Virtual destructor.
virtual T & filterByCardProtocol(const std::string &logicalProtocolName)=0
Restricts the selection process to cards communicating with the reader according to a specific protoc...
virtual T & filterByPowerOnData(const std::string &powerOnDataRegex)=0
Restricts the selection process to cards whose power-on data provided by the reader matches a specifi...