Keyple Card Calypso C++ Library 2.2.2
Reference Terminal Reader API for C++
CmdSamReadEventCounter.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#include <cstdint>
16#include <map>
17#include <vector>
18
19/* Calypsonet Terminal Calypso */
20#include "CalypsoSam.h"
21
22/* Keyple Card Calypso */
23#include "AbstractSamCommand.h"
24
25namespace keyple {
26namespace card {
27namespace calypso {
28
29using namespace calypsonet::terminal::calypso::sam;
30
38public:
47
52 };
53
64 const SamEventCounterOperationType operationType,
65 const int index);
66
74 const std::vector<uint8_t> getCounterData() const;
75
81 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
82 override;
83
84private:
88 static const CalypsoSamCommand mCommand;
89
93 static const int MAX_COUNTER_NUMB;
94
99 static const int MAX_COUNTER_REC_NUMB;
100
104 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
105
109 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
110};
111
112}
113}
114}
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
CmdSamReadEventCounter(const CalypsoSam::ProductType productType, const SamEventCounterOperationType operationType, const int index)
const std::vector< uint8_t > getCounterData() const
CalypsoSam::ProductType ProductType