Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
AbstractSamCommand.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
17/* Keyple Card Calypso */
18#include "AbstractApduCommand.h"
19#include "CalypsoSamCommand.h"
20
21namespace keyple {
22namespace card {
23namespace calypso {
24
25
27
35public:
42 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
43
49 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
50 override;
51
59 AbstractSamCommand(const CalypsoSamCommand& commandRef);
60
66 const CalypsoSamCommand& getCommandRef() const override;
67
73 const CalypsoApduCommandException buildCommandException(const std::type_info& exceptionClass,
74 const std::string& message,
75 const CardCommand& commandRef,
76 const int statusWord) const final;
77
84 const std::shared_ptr<ApduResponseApi> apduResponse) override;
85
91 void checkStatus() override;
92
93private:
97 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
98};
99
100}
101}
102}
AbstractSamCommand & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
AbstractSamCommand(const CalypsoSamCommand &commandRef)
const CalypsoApduCommandException buildCommandException(const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
static const std::map< const int, const std::shared_ptr< StatusProperties > > STATUS_TABLE
const CalypsoSamCommand & getCommandRef() const override
AbstractApduCommand::StatusProperties StatusProperties