40 virtual std::vector<std::uint8_t>
getContent()
const = 0;
49 virtual std::vector<std::uint8_t>
getContent(std::uint8_t numRecord)
const
68 std::uint8_t numRecord,
69 std::uint8_t dataOffset,
70 std::uint8_t dataLength)
const
79 virtual const std::map<const std::uint8_t, std::vector<std::uint8_t>>&
117 std::ostringstream ss;
118 ss << std::uppercase << std::hex << std::setfill(
'0');
120 ss <<
"FILE_DATA: {RECORDS: {";
127 ss << std::setw(2) << static_cast<int>(record.first) <<
": ";
128 for (
const auto byte : record.second) {
129 ss << std::setw(2) << static_cast<int>(
byte);
143 operator<<(std::ostream& os,
const std::shared_ptr<FileData>& fd) {
145 os <<
"FILE_DATA: null";
virtual const std::map< const std::uint8_t, std::vector< std::uint8_t > > & getAllRecordsContent() const =0
Gets a reference to all known records content.
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.
virtual std::vector< std::uint8_t > getContent() const =0
Gets a reference to the known content of record #1.
friend 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 objec...
virtual std::vector< std::uint8_t > getContent(std::uint8_t numRecord) const =0
Gets a reference to the known content of a specific record.
virtual std::map< const int, const int > getAllCountersValue() const =0
Gets all known counters value.
virtual std::shared_ptr< int > getContentAsCounterValue(int numCounter) const =0
Gets the known value of the counter #numCounter.