Keypop Reader C++ API - 2.1.0
Component of the Keypop C++ API
FileOccurrence.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
28enum class FileOccurrence {
34 FIRST,
35
41 LAST,
42
48 NEXT,
49
56};
57
58static inline std::ostream&
59operator<<(std::ostream& os, const FileOccurrence fo)
60{
61 os << "FILE_OCCURENCE: ";
62 switch (fo) {
64 os << "FIRST";
65 break;
67 os << "LAST";
68 break;
70 os << "NEXT";
71 break;
73 os << "PREVIOUS";
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 */
FileOccurrence
Navigation options through the different applications contained in the card according to the ISO7816-...
std::ostream & operator<<(std::ostream &os, const CardReaderEvent::Type type)
Operator << for CardReaderEvent::Type enum to enable readable logging.