Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
AbstractCardCommand.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/* Keyple Card Calypso */
16#include "AbstractApduCommand.h"
17#include "CalypsoCardCommand.h"
18
19namespace keyple {
20namespace card {
21namespace calypso {
22
30public:
38 AbstractCardCommand(const CalypsoCardCommand& commandRef);
39
45 const CalypsoCardCommand& getCommandRef() const override;
46
56 virtual bool isSessionBufferUsed() const = 0;
57
64 const std::type_info& exceptionClass,
65 const std::string& message,
66 const CardCommand& commandRef,
67 const int statusWord) const final;
68
74 AbstractCardCommand& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse)
75 override;
76
82 void checkStatus() override;
83};
84
85}
86}
87}
AbstractCardCommand(const CalypsoCardCommand &commandRef)
virtual bool isSessionBufferUsed() const =0
const CalypsoCardCommand & getCommandRef() const override
const CalypsoApduCommandException buildCommandException(const std::type_info &exceptionClass, const std::string &message, const CardCommand &commandRef, const int statusWord) const final
AbstractCardCommand & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override