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
18
namespace
keypop
{
19
namespace
reader {
20
namespace
selection {
21
28
enum class
FileOccurrence
{
34
FIRST
,
35
41
LAST
,
42
48
NEXT
,
49
55
PREVIOUS
56
};
57
58
static
inline
std::ostream&
59
operator<<
(std::ostream& os,
const
FileOccurrence
fo)
60
{
61
os <<
"FILE_OCCURENCE: "
;
62
switch
(fo) {
63
case
FileOccurrence::FIRST
:
64
os <<
"FIRST"
;
65
break
;
66
case
FileOccurrence::LAST
:
67
os <<
"LAST"
;
68
break
;
69
case
FileOccurrence::NEXT
:
70
os <<
"NEXT"
;
71
break
;
72
case
FileOccurrence::PREVIOUS
:
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 */
keypop::reader::selection::FileOccurrence
FileOccurrence
Navigation options through the different applications contained in the card according to the ISO7816-...
Definition:
FileOccurrence.hpp:28
keypop::reader::selection::FileOccurrence::FIRST
@ FIRST
First occurrence.
keypop::reader::selection::FileOccurrence::PREVIOUS
@ PREVIOUS
Previous occurrence.
keypop::reader::selection::FileOccurrence::NEXT
@ NEXT
Next occurrence.
keypop::reader::selection::FileOccurrence::LAST
@ LAST
Last occurrence.
keypop::reader::operator<<
std::ostream & operator<<(std::ostream &os, const CardReaderEvent::Type type)
Operator << for CardReaderEvent::Type enum to enable readable logging.
Definition:
CardReaderEvent.hpp:115
keypop
Definition:
CardCommunicationException.hpp:20
keypop
reader
selection
FileOccurrence.hpp
Generated by
1.9.2