Keypop Calypso Card C++ API 2.0.0
Reference Calypso Card API for C++
FileData.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 <map>
15#include <memory>
16#include <vector>
17
18namespace keypop {
19namespace calypso {
20namespace card {
21namespace card {
22
28class FileData {
29public:
37 virtual const std::vector<uint8_t> getContent() const = 0;
38
46 virtual const std::vector<uint8_t>
47 getContent(const uint8_t numRecord) const = 0;
48
64 virtual const std::vector<uint8_t> getContent(
65 const uint8_t numRecord,
66 const uint8_t dataOffset,
67 const uint8_t dataLength) const = 0;
68
75 virtual const std::map<const uint8_t, std::vector<uint8_t>>&
77
91 virtual const std::shared_ptr<int>
92 getContentAsCounterValue(const int numCounter) const = 0;
93
103 virtual const std::map<const int, const int>
105};
106
107} /* namespace card */
108} /* namespace card */
109} /* namespace calypso */
110} /* namespace keypop */
virtual const std::map< const uint8_t, std::vector< uint8_t > > & getAllRecordsContent() const =0
virtual const std::map< const int, const int > getAllCountersValue() const =0
virtual const std::vector< uint8_t > getContent(const uint8_t numRecord, const uint8_t dataOffset, const uint8_t dataLength) const =0
virtual const std::vector< uint8_t > getContent() const =0
virtual const std::vector< uint8_t > getContent(const uint8_t numRecord) const =0
virtual const std::shared_ptr< int > getContentAsCounterValue(const int numCounter) const =0