pflib v3.14.3-4-g3289bd3
Pretty Fine HGCROC Interaction Library
Loading...
Searching...
No Matches
pflib::utility::intel_hex::Reader Class Reference

reader for the IntelHex format More...

#include <intel_hex.h>

Collaboration diagram for pflib::utility::intel_hex::Reader:
[legend]

Public Member Functions

 Reader (const Reader &)=delete
 
Reader & operator= (const Reader &)=delete
 
 Reader (const std::string &input_filepath)
 
std::size_t errors () const
 
bool next ()
 
const DataRecord & get ()
 

Private Attributes

std::ifstream input_file_
 
DataRecord current_record_
 
std::size_t error_count_
 

Detailed Description

reader for the IntelHex format

we go record-by-record giving the user a choice on if the data is being kept in a large array in memory or if it is being sent incrementally to be applied to the chip for configuration

intel_hex::Reader ih_reader("file.hex");
while (ih_reader.next()) {
auto data = ih_reader.get();
// do something with data
}
reader for the IntelHex format
Definition intel_hex.h:93

The documentation for this class was generated from the following files: