Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
CmdSamReadKeyParameters.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2022 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional information regarding *
5 * copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the terms of the Eclipse *
8 * Public License 2.0 which is available at http://www.eclipse.org/legal/epl-2.0 *
9 * *
10 * SPDX-License-Identifier: EPL-2.0 *
11 **************************************************************************************************/
12
13#pragma once
14
15#include <cstdint>
16#include <map>
17#include <ostream>
18#include <vector>
19
20/* Calypsonet Terminal Calypso */
21#include "CalypsoSam.h"
22
23/* Keyple Card Calypso */
24#include "AbstractSamCommand.h"
25
26namespace keyple {
27namespace card {
28namespace calypso {
29
30using namespace calypsonet::terminal::calypso::sam;
31
39public:
43 enum class SourceRef {
48
53 };
54
58 enum class NavControl {
62 FIRST,
63
67 NEXT
68 };
69
78
87 CmdSamReadKeyParameters(const CalypsoSam::ProductType productType, const uint8_t kif);
88
99 const uint8_t kif,
100 const uint8_t kvc);
101
112 const SourceRef sourceKeyRef,
113 const int recordNumber);
114
125 const uint8_t kif,
126 const NavControl navControl);
127
135 const std::vector<uint8_t> getKeyParameters() const;
136
140 friend std::ostream& operator<<(std::ostream& os, const SourceRef& sr);
144 friend std::ostream& operator<<(std::ostream& os, const NavControl& nc);
145
151 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
152 override;
153
154private:
158 static const CalypsoSamCommand mCommand;
159
163 static const int MAX_WORK_KEY_REC_NUMB;
164
168 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
169
173 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
174};
175
176}
177}
178}
CmdSamReadKeyParameters(const CalypsoSam::ProductType productType)
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
friend std::ostream & operator<<(std::ostream &os, const SourceRef &sr)
const std::vector< uint8_t > getKeyParameters() const
CalypsoSam::ProductType ProductType