Keypop Calypso Card C++ API - 2.1.2
Component of the Keypop C++ API
SearchCommandData.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2025 Calypso Networks Association https://calypsonet.org/ *
3 * *
4 * This program and the accompanying materials are made available under the *
5 * terms of the MIT License which is available at *
6 * https://opensource.org/licenses/MIT. *
7 * *
8 * SPDX-License-Identifier: MIT *
9 ******************************************************************************/
10
11#pragma once
12
13#include <cstdint>
14#include <vector>
15
16namespace keypop {
17namespace calypso {
18namespace card {
19namespace transaction {
20
28public:
32 virtual ~SearchCommandData() = default;
33
41 virtual SearchCommandData& setSfi(std::uint8_t sfi) = 0;
42
53 virtual SearchCommandData& startAtRecord(int recordNumber) = 0;
54
66 virtual SearchCommandData& setOffset(int offset) = 0;
67
78
86 virtual SearchCommandData&
87 setSearchData(const std::vector<std::uint8_t>& data) = 0;
88
100 virtual SearchCommandData& setMask(const std::vector<std::uint8_t>& mask)
101 = 0;
102
111
119 virtual std::vector<int>& getMatchingRecordNumbers() = 0;
120};
121
122} /* namespace transaction */
123} /* namespace card */
124} /* namespace calypso */
125} /* namespace keypop */
Contains the input/output data of the CardTransactionManager::prepareSearchRecords(SearchCommandData)...
virtual std::vector< int > & getMatchingRecordNumbers()=0
Returns a list containing the numbers of the records who has matched.
virtual SearchCommandData & setSearchData(const std::vector< std::uint8_t > &data)=0
Sets the data to search.
virtual SearchCommandData & setSfi(std::uint8_t sfi)=0
Sets the SFI of the EF in which the search is to be performed.
virtual ~SearchCommandData()=default
Virtual destructor.
virtual SearchCommandData & fetchFirstMatchingResult()=0
Requests to fetch the content of the first matching record into the org.calypsonet....
virtual SearchCommandData & setOffset(int offset)=0
Sets the offset in number of bytes from which the analysis should be performed within a record.
virtual SearchCommandData & enableRepeatedOffset()=0
Allows the command to analyze the data present at the given offset, and repeatedly at each following ...
virtual SearchCommandData & startAtRecord(int recordNumber)=0
Sets the number of the record where the search should begin.
virtual SearchCommandData & setMask(const std::vector< std::uint8_t > &mask)=0
Sets the mask of bits to take into account during the comparison (padded right with FFh if absent or ...