Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardGetDataEfList.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 <memory>
17#include <string>
18#include <vector>
19
20/* Keyple Card Calypso */
21#include "AbstractApduCommand.h"
22#include "AbstractCardCommand.h"
23#include "CalypsoCardCommand.h"
24#include "CalypsoCardClass.h"
25#include "FileHeaderAdapter.h"
26
27namespace keyple {
28namespace card {
29namespace calypso {
30
32
43public:
51 CmdCardGetDataEfList(const CalypsoCardClass calypsoCardClass);
52
59 bool isSessionBufferUsed() const override;
60
66 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
67 override;
68
76 const std::map<const std::shared_ptr<FileHeaderAdapter>, const uint8_t> getEfHeaders() const;
77
78private:
82 static const CalypsoCardCommand mCommand;
83
87 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
88
92 static const int DESCRIPTORS_OFFSET;
93 static const int DESCRIPTOR_DATA_OFFSET;
94 static const int DESCRIPTOR_DATA_SFI_OFFSET;
95 static const int DESCRIPTOR_TAG_LENGTH;
96 static const int DESCRIPTOR_DATA_LENGTH;
97
105 const std::shared_ptr<FileHeaderAdapter> createFileHeader(
106 const std::vector<uint8_t>& efDescriptorByteArray) const;
107
111 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
112};
113
114}
115}
116}
CmdCardGetDataEfList(const CalypsoCardClass calypsoCardClass)
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