Keypop Reader C++ API 2.0.0
Reference Reader API for C++
CommonIsoCardSelector.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#include <vector>
14
16
17namespace keypop {
18namespace reader {
19namespace selection {
20
35template <typename T>
36class CommonIsoCardSelector<T> : public CardSelector<T> {
37public:
50 FCI,
51
57 FCP,
58
64 FMD,
65
71 NO_RESPONSE
72 };
73
80 enum class FileOccurrence {
86 FIRST,
87
93 LAST,
94
100 NEXT,
101
107 PREVIOUS
108 };
109
124 virtual T& filterByDfName(const std::vector<uint8_t>& aid) = 0;
125
140 virtual T& filterByDfName(const std::string& aid) = 0;
141
152 virtual T& setFileOccurrence(FileOccurrence fileOccurrence) = 0;
153
164 virtual T& setFileControlInformation(FileControlInformation fileControlInformation) = 0;
165};
166
167} /* namespace selection */
168} /* namespace reader */
169} /* namespace keypop */
virtual T & setFileControlInformation(FileControlInformation fileControlInformation)=0
virtual T & filterByDfName(const std::string &aid)=0
virtual T & filterByDfName(const std::vector< uint8_t > &aid)=0
virtual T & setFileOccurrence(FileOccurrence fileOccurrence)=0