Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardGetDataFci.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 <map>
16#include <memory>
17#include <typeinfo>
18#include <vector>
19
20/* Keyple Card Calypso */
21#include "AbstractApduCommand.h"
22#include "AbstractCardCommand.h"
23#include "CalypsoCardClass.h"
24#include "CalypsoCardCommand.h"
25
26/* Keyple Core Util */
27#include "LoggerFactory.h"
28
29namespace keyple {
30namespace card {
31namespace calypso {
32
33using namespace keyple::core::util::cpp;
34
36
47public:
55 CmdCardGetDataFci(const CalypsoCardClass calypsoCardClass);
56
64
71 bool isSessionBufferUsed() const override;
72
97 CmdCardGetDataFci& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse)
98 override;
99
107 bool isValidCalypsoFCI() const;
108
116 const std::vector<uint8_t>& getDfName() const;
117
125 const std::vector<uint8_t>& getApplicationSerialNumber() const;
126
134 const std::vector<uint8_t>& getDiscretionaryData() const;
135
143 bool isDfInvalidated() const;
144
150 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
151 override;
152
153private:
157 const std::unique_ptr<Logger> mLogger = LoggerFactory::getLogger(typeid(CmdCardGetDataFci));
158
162 static const CalypsoCardCommand mCommand;
163
167 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
168
172 static const int TAG_DF_NAME;
173 static const int TAG_APPLICATION_SERIAL_NUMBER;
174 static const int TAG_DISCRETIONARY_DATA;
175
179 bool mIsDfInvalidated;
180 bool mIsValidCalypsoFCI;
181
185 std::vector<uint8_t> mDfName;
186
190 std::vector<uint8_t> mApplicationSN;
191
195 std::vector<uint8_t> mDiscretionaryData;
196
200 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
201};
202
203}
204}
205}
const std::vector< uint8_t > & getDfName() const
CmdCardGetDataFci & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::vector< uint8_t > & getDiscretionaryData() const
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
const std::vector< uint8_t > & getApplicationSerialNumber() const
AbstractApduCommand::StatusProperties StatusProperties