Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardSelectFile.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 <memory>
18#include <vector>
19
20/* Calypsonet Terminal Calypso */
21#include "SelectFileControl.h"
22#include "CalypsoCard.h"
23
24/* Keyple Card Calypso */
25#include "AbstractCardCommand.h"
26#include "CalypsoCardClass.h"
27#include "CalypsoCardCommand.h"
28
29/* Keyple Core Util */
30#include "LoggerFactory.h"
31
32namespace keyple {
33namespace card {
34namespace calypso {
35
36using namespace calypsonet::terminal::calypso;
37using namespace calypsonet::terminal::calypso::card;
38using namespace keyple::core::util::cpp;
39
41
52public:
62 CmdCardSelectFile(const CalypsoCardClass calypsoCardClass,
63 const SelectFileControl selectFileControl);
64
75 CmdCardSelectFile(const CalypsoCardClass calypsoCardClass,
76 const CalypsoCard::ProductType productType,
77 const uint16_t lid);
78
85 bool isSessionBufferUsed() const override;
86
94 const std::vector<uint8_t>& getProprietaryInformation();
95
101 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
102 override;
103
104private:
108 const std::shared_ptr<Logger> mLogger = LoggerFactory::getLogger(typeid(CmdCardSelectFile));
109
113 static const CalypsoCardCommand mCommand;
114
118 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
119
123 static const int TAG_PROPRIETARY_INFORMATION;
124
128 std::vector<uint8_t> mProprietaryInformation;
129
133 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
134};
135
136}
137}
138}
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
const std::vector< uint8_t > & getProprietaryInformation()
CmdCardSelectFile(const CalypsoCardClass calypsoCardClass, const SelectFileControl selectFileControl)
AbstractApduCommand::StatusProperties StatusProperties
CalypsoSam::ProductType ProductType