Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
FileControlInformation.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 <iostream>
17
18namespace keypop {
19namespace reader {
20namespace selection {
21
34 FCI,
35
41 FCP,
42
48 FMD,
49
56};
57
58static inline std::ostream&
59operator<<(std::ostream& os, const FileControlInformation fci)
60{
61 os << "FILE_CONTROL_INFORMATION: ";
62 switch (fci) {
64 os << "FCI";
65 break;
67 os << "FCP";
68 break;
70 os << "FMD";
71 break;
73 os << "NO_RESPONSE";
74 break;
75 default:
76 os << "UNKNOWN";
77 break;
78 }
79
80 return os;
81}
82
83} /* namespace selection */
84} /* namespace reader */
85} /* namespace keypop */
FileControlInformation
Types of templates available in return for the Select Application command, according to the ISO7816-4...
std::ostream & operator<<(std::ostream &os, const CardReaderEvent::Type type)
Operator << for CardReaderEvent::Type enum to enable readable logging.