Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CalypsoSamResourceProfileExtensionAdapter.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2021 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 <memory>
16
17/* Calypsonet Terminal Calypso */
18#include "CalypsoSamSelection.h"
19
20/* Keyple Core Service */
21#include "CardResourceProfileExtension.h"
22
23/* Keyple Core Util */
24#include "LoggerFactory.h"
25
26namespace keyple {
27namespace card {
28namespace calypso {
29
30using namespace calypsonet::terminal::calypso::sam;
31using namespace keyple::core::service::resource::spi;
32using namespace keyple::core::util::cpp;
33
40class CalypsoSamResourceProfileExtensionAdapter : public CardResourceProfileExtension {
41public:
49 const std::shared_ptr<CalypsoSamSelection> calypsoSamSelection);
50
56 std::shared_ptr<SmartCard> matches(
57 std::shared_ptr<CardReader> reader,
58 std::shared_ptr<CardSelectionManager> samCardSelectionManager) override;
59
60private:
64 const std::unique_ptr<Logger> mLogger =
65 LoggerFactory::getLogger(typeid(CalypsoSamResourceProfileExtensionAdapter));
66
70 const std::shared_ptr<CalypsoSamSelection> mCalypsoSamSelection;
71};
72
73}
74}
75}
std::shared_ptr< SmartCard > matches(std::shared_ptr< CardReader > reader, std::shared_ptr< CardSelectionManager > samCardSelectionManager) override
CalypsoSamResourceProfileExtensionAdapter(const std::shared_ptr< CalypsoSamSelection > calypsoSamSelection)