Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
SamTransactionManagerAdapter.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 Core Util */
16#include "LoggerFactory.h"
17
18/* Keyple Card Calypso */
20
21namespace keyple {
22namespace card {
23namespace calypso {
24
25using namespace keyple::core::util::cpp;
26
34: public CommonSamTransactionManagerAdapter<SamSecuritySettingAdapter> {
35public:
45 SamTransactionManagerAdapter(const std::shared_ptr<ProxyReaderApi> samReader,
46 const std::shared_ptr<CalypsoSamAdapter> sam,
47 const std::shared_ptr<SamSecuritySettingAdapter> securitySetting);
48
54 const std::shared_ptr<SamSecuritySetting> getSecuritySetting() const override;
55
56private:
60 const std::unique_ptr<Logger> mLogger =
61 LoggerFactory::getLogger(typeid(SamTransactionManagerAdapter));
62
66 const std::shared_ptr<SamSecuritySettingAdapter> mSecuritySetting;
67
71 const std::shared_ptr<SamControlSamTransactionManagerAdapter> mControlSamTransactionManager;
72};
73
74}
75}
76}
SamTransactionManagerAdapter(const std::shared_ptr< ProxyReaderApi > samReader, const std::shared_ptr< CalypsoSamAdapter > sam, const std::shared_ptr< SamSecuritySettingAdapter > securitySetting)
const std::shared_ptr< SamSecuritySetting > getSecuritySetting() const override