Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
CmdCardSvGet.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 <map>
17#include <memory>
18#include <vector>
19
20/* Calypsonet Terminal Calypso */
21#include "SvDebitLogRecord.h"
22#include "SvLoadLogRecord.h"
23#include "SvOperation.h"
24
25/* Keyple Card Calypso */
26#include "AbstractApduCommand.h"
27#include "AbstractCardCommand.h"
28#include "CalypsoCardClass.h"
29
30/* Keyple Core Util */
31#include "LoggerFactory.h"
32
33namespace keyple {
34namespace card {
35namespace calypso {
36
37using namespace calypsonet::terminal::calypso::card;
38using namespace calypsonet::terminal::calypso::transaction;
39using namespace keyple::core::util::cpp;
40
42
49class CmdCardSvGet final : public AbstractCardCommand {
50public:
61 CmdCardSvGet(const std::shared_ptr<CalypsoCardAdapter> calypsoCard,
62 const SvOperation svOperation,
63 const bool useExtendedMode);
64
71 bool isSessionBufferUsed() const override;
72
78 void parseApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse) override;
79
85 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
86 override;
87
88private:
92 const std::unique_ptr<Logger> mLogger = LoggerFactory::getLogger(typeid(CmdCardSvGet));
93
97 static const CalypsoCardCommand mCommand;
98
102 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
103
107 std::vector<uint8_t> mHeader;
108
112 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
113};
114
115}
116}
117}
CmdCardSvGet(const std::shared_ptr< CalypsoCardAdapter > calypsoCard, const SvOperation svOperation, const bool useExtendedMode)
bool isSessionBufferUsed() const override
void parseApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
AbstractApduCommand::StatusProperties StatusProperties