|
Keypop Calypso Card C++ API - 2.2.0
Component of the Keypop C++ API
|
Calypso EF content. More...
#include <keypop/calypso/card/card/FileData.hpp>
Public Member Functions | |
| virtual std::vector< std::uint8_t > | getContent () const =0 |
| Gets a reference to the known content of record #1. More... | |
| virtual std::vector< std::uint8_t > | getContent (std::uint8_t numRecord) const =0 |
| Gets a reference to the known content of a specific record. More... | |
| virtual std::vector< std::uint8_t > | getContent (std::uint8_t numRecord, std::uint8_t dataOffset, std::uint8_t dataLength) const =0 |
| Gets a copy of a known content subset of a specific record from dataOffset to dataLength. More... | |
| virtual const std::map< const std::uint8_t, std::vector< std::uint8_t > > & | getAllRecordsContent () const =0 |
| Gets a reference to all known records content. More... | |
| virtual std::shared_ptr< int > | getContentAsCounterValue (int numCounter) const =0 |
| Gets the known value of the counter #numCounter. More... | |
| virtual std::map< const int, const int > | getAllCountersValue () const =0 |
| Gets all known counters value. More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &os, const FileData &fd) |
| Renders the records this file holds, so that a log shows the content and not the address of the object. More... | |
| std::ostream & | operator<< (std::ostream &os, const std::shared_ptr< FileData > &fd) |
|
pure virtual |
Gets all known counters value.
The counters values are extracted from record #1.
If last counter has a truncated value (when size of record #1 modulo 3 != 0), then last counter value is not returned.
|
pure virtual |
Gets a reference to all known records content.
|
pure virtual |
Gets a reference to the known content of record #1.
For a Binary file, it means all the bytes of the file.
|
pure virtual |
Gets a reference to the known content of a specific record.
| numRecord | The record number. |
|
pure virtual |
Gets a copy of a known content subset of a specific record from dataOffset to dataLength.
| numRecord | The record number. |
| dataOffset | The offset index (should be >=
|
| dataLength | The data length (should be >=
|
| IllegalArgumentException | if dataOffset <
<
|
| IndexOutOfBoundsException | if dataOffset >=
>
|
|
pure virtual |
Gets the known value of the counter #numCounter.
The counter value is extracted from the 3 next bytes at the index [(numCounter - 1) * 3] of the record #1.
e.g. if numCounter == 2, then value is extracted from bytes indexes [3,4,5].
| numCounter | The counter number (should be >=
|
| IllegalArgumentException | if numCounter is <
|
| IndexOutOfBoundsException | if numCounter has a truncated value (when size of record #1 modulo 3 != 0). |
|
friend |
Renders the records this file holds, so that a log shows the content and not the address of the object.
Definition at line 114 of file FileData.hpp.
|
friend |
Definition at line 142 of file FileData.hpp.