Keyple Card Calypso C++ Library 2.2.2
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:
39 AbstractCardCommand(const CalypsoCardCommand& commandRef, const int le);
40
46 const CalypsoCardCommand& getCommandRef() const override;
47
57 virtual bool isSessionBufferUsed() const = 0;
58
64 const CalypsoApduCommandException buildCommandException(const std::type_info& exceptionClass,
65 const std::string& message) const final;
66
73 const std::string& message) const final;
74
80 AbstractCardCommand& setApduResponse(const std::shared_ptr<ApduResponseApi> apduResponse)
81 override;
82
88 void checkStatus() override;
89};
90
91}
92}
93}
virtual bool isSessionBufferUsed() const =0
AbstractCardCommand(const CalypsoCardCommand &commandRef, const int le)
const CalypsoApduCommandException buildCommandException(const std::type_info &exceptionClass, const std::string &message) const final
const CalypsoCardCommand & getCommandRef() const override
const CalypsoApduCommandException buildUnexpectedResponseLengthException(const std::string &message) const final
AbstractCardCommand & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override