Keyple Card Calypso C++ Library 2.1.0
Reference Terminal Reader API for C++
CmdCardSearchRecordMultiple.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 <cstdint>
16#include <map>
17#include <memory>
18#include <vector>
19
20/* Keyple Card Calypso */
21#include "AbstractApduCommand.h"
22#include "AbstractCardCommand.h"
23#include "CalypsoCardClass.h"
25
26/* Keyple Core Util */
27#include "LoggerFactory.h"
28
29namespace keyple {
30namespace card {
31namespace calypso {
32
33using namespace keyple::core::util::cpp;
34
36
44public:
53 CmdCardSearchRecordMultiple(const CalypsoCardClass calypsoCardClass,
54 const std::shared_ptr<SearchCommandDataAdapter> data);
55
62 bool isSessionBufferUsed() const override;
63
69 const std::map<const int, const std::shared_ptr<StatusProperties>>& getStatusTable() const
70 override;
71
78 const std::shared_ptr<ApduResponseApi> apduResponse) override;
79
86 const std::shared_ptr<SearchCommandDataAdapter> getSearchCommandData() const;
87
95 const std::vector<uint8_t> getFirstMatchingRecordContent() const;
96
97private:
101 const std::unique_ptr<Logger> mLogger =
102 LoggerFactory::getLogger(typeid(CmdCardSearchRecordMultiple));
103
107 static const std::map<const int, const std::shared_ptr<StatusProperties>> STATUS_TABLE;
108
112 const std::shared_ptr<SearchCommandDataAdapter> mData;
113
117 std::vector<uint8_t> mFirstMatchingRecordContent;
118
122 static const std::map<const int, const std::shared_ptr<StatusProperties>> initStatusTable();
123};
124
125}
126}
127}
const std::vector< uint8_t > getFirstMatchingRecordContent() const
CmdCardSearchRecordMultiple(const CalypsoCardClass calypsoCardClass, const std::shared_ptr< SearchCommandDataAdapter > data)
const std::shared_ptr< SearchCommandDataAdapter > getSearchCommandData() const
CmdCardSearchRecordMultiple & setApduResponse(const std::shared_ptr< ApduResponseApi > apduResponse) override
const std::map< const int, const std::shared_ptr< StatusProperties > > & getStatusTable() const override
AbstractApduCommand::StatusProperties StatusProperties