Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdSamSvCheck.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 <vector>
18
19/* Calypsonet Terminal Calypso */
20#include "CalypsoSam.h"
21
22/* Keyple Card Calypso */
23#include "AbstractApduCommand.h"
24#include "AbstractSamCommand.h"
25
26namespace keyple {
27namespace card {
28namespace calypso {
29
30using namespace calypsonet::terminal::calypso::sam;
31
33
40class CmdSamSvCheck final : public AbstractSamCommand {
41public:
51 CmdSamSvCheck(const CalypsoSam::ProductType productType,
52 const std::vector<uint8_t>& svCardSignature);
53
59 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
60 override;
61
62private:
66 static const CalypsoSamCommand mCommand;
67
71 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
72
76 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
77};
78
79}
80}
81}
CmdSamSvCheck(const CalypsoSam::ProductType productType, const std::vector< uint8_t > &svCardSignature)
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
AbstractApduCommand::StatusProperties StatusProperties
CalypsoSam::ProductType ProductType