Keyple Card Calypso C++ Library 2.2.5.6
Reference Terminal Reader API for C++
SamTransactionManagerAdapter.h
Go to the documentation of this file.
1/**************************************************************************************************
2 * Copyright (c) 2023 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<SamSecuritySetting> {
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<CommonSecuritySetting> getSecuritySetting() const override;
55
56private:
57
61 static const int MIN_EVENT_COUNTER_NUMBER;
62 static const int MAX_EVENT_COUNTER_NUMBER;
63 static const int MIN_EVENT_CEILING_NUMBER;
64 static const int MAX_EVENT_CEILING_NUMBER;
65 static const int FIRST_COUNTER_REC1;
66 static const int LAST_COUNTER_REC1;
67 static const int FIRST_COUNTER_REC2;
68 static const int LAST_COUNTER_REC2;
69 static const int FIRST_COUNTER_REC3;
70 static const int LAST_COUNTER_REC3;
71
75 const std::unique_ptr<Logger> mLogger =
76 LoggerFactory::getLogger(typeid(SamTransactionManagerAdapter));
77
81 const std::shared_ptr<SamSecuritySettingAdapter> mSecuritySetting;
82
86 const std::shared_ptr<SamControlSamTransactionManagerAdapter> mControlSamTransactionManager;
87};
88
89}
90}
91}
SamTransactionManagerAdapter(const std::shared_ptr< ProxyReaderApi > samReader, const std::shared_ptr< CalypsoSamAdapter > sam, const std::shared_ptr< SamSecuritySettingAdapter > securitySetting)
const std::shared_ptr< CommonSecuritySetting > getSecuritySetting() const override