Keyple Card Generic C++ Library - 3.1.2
Component of the Keyple C++ middleware
CardRequestAdapter.cpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * See the NOTICE file(s) distributed with this work for additional *
5 * information regarding copyright ownership. *
6 * *
7 * This program and the accompanying materials are made available under the *
8 * terms of the Eclipse Public License 2.0 which is available at *
9 * http://www.eclipse.org/legal/epl-2.0 *
10 * *
11 * SPDX-License-Identifier: EPL-2.0 *
12 ******************************************************************************/
13
14#include "keyple/card/generic/CardRequestAdapter.hpp"
15
16namespace keyple {
17namespace card {
18namespace generic {
19
20CardRequestAdapter::CardRequestAdapter(
21 const std::vector<std::shared_ptr<ApduRequestSpi>>& apduRequests,
22 const bool stopOnUnsuccessfulStatusWord)
23: mApduRequests(apduRequests)
24, mStopOnUnsuccessfulStatusWord(stopOnUnsuccessfulStatusWord)
25{
26}
27
28const std::vector<std::shared_ptr<ApduRequestSpi>>&
29CardRequestAdapter::getApduRequests() const
30{
31 return mApduRequests;
32}
33
34bool
35CardRequestAdapter::stopOnUnsuccessfulStatusWord() const
36{
37 return mStopOnUnsuccessfulStatusWord;
38}
39
40} /* namespace generic */
41} /* namespace card */
42} /* namespace keyple */