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) 2024 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 https://opensource.org/licenses/MIT. *
6 * *
7 * SPDX-License-Identifier: MIT *
8 **************************************************************************************************/
9
10#pragma once
11
12#include <cstdint>
13#include <map>
14#include <memory>
15#include <vector>
16
17namespace keypop {
18namespace calypso {
19namespace card {
20namespace card {
21
27class FileData {
28public:
36 virtual const std::vector<uint8_t> getContent() const = 0;
37
45 virtual const std::vector<uint8_t> getContent(const uint8_t numRecord) const = 0;
46
60 virtual const std::vector<uint8_t>
61 getContent(const uint8_t numRecord, const uint8_t dataOffset, const uint8_t dataLength) const
62 = 0;
63
70 virtual const std::map<const uint8_t, std::vector<uint8_t>>& getAllRecordsContent() const = 0;
71
85 virtual const std::shared_ptr<int> getContentAsCounterValue(const int numCounter) const = 0;
86
96 virtual const std::map<const int, const int> getAllCountersValue() const = 0;
97};
98
99} /* namespace card */
100} /* namespace card */
101} /* namespace calypso */
102} /* 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