Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
CmdCardGetDataEfList.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2023 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 <memory>
17#include <string>
18#include <vector>
19
20/* Keyple Card Calypso */
21#include "AbstractApduCommand.h"
22#include "AbstractCardCommand.h"
23#include "CalypsoCardAdapter.h"
24#include "CalypsoCardCommand.h"
25#include "CalypsoCardClass.h"
26#include "FileHeaderAdapter.h"
27
28namespace keyple {
29namespace card {
30namespace calypso {
31
33
44public:
52 CmdCardGetDataEfList(const CalypsoCardClass calypsoCardClass);
53
61 CmdCardGetDataEfList(const std::shared_ptr<CalypsoCardAdapter> calypsoCard);
68 bool isSessionBufferUsed() const override;
69
75 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
76 override;
77
85 const std::map<const std::shared_ptr<FileHeaderAdapter>, const uint8_t> getEfHeaders() const;
86
92 void parseApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse) override;
93
94private:
98 static const CalypsoCardCommand mCommand;
99
103 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
104
108 static const int DESCRIPTORS_OFFSET;
109 static const int DESCRIPTOR_DATA_OFFSET;
110 static const int DESCRIPTOR_DATA_SFI_OFFSET;
111 static const int DESCRIPTOR_TAG_LENGTH;
112 static const int DESCRIPTOR_DATA_LENGTH;
113
121 const std::shared_ptr<FileHeaderAdapter> createFileHeader(
122 const std::vector<uint8_t>& efDescriptorByteArray) const;
123
127 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
128
135 void buildCommand(const CalypsoCardClass calypsoCardClass);
136};
137
138}
139}
140}
CmdCardGetDataEfList(const CalypsoCardClass calypsoCardClass)
void parseApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
const std::map< const std::shared_ptr< FileHeaderAdapter >, const uint8_t > getEfHeaders() const
AbstractApduCommand::StatusProperties StatusProperties