scc 2025.09
SystemC components library
util::ihex_parser Struct Reference

A utility class for parsing Intel Hex (IHEX) files. More...

#include <ihex_parser.h>

Public Types

enum  { IHEX_DATA_SIZE = 255 }
 The maximum size of data in a single IHEX record. More...

Static Public Member Functions

static bool parse (std::istream &, std::function< bool(uint64_t, uint64_t, const uint8_t *)>)
 Parses an IHEX file from the given input stream and invokes a callback function for each data record found.

Detailed Description

A utility class for parsing Intel Hex (IHEX) files.

The Intel Hex (IHEX) file format is a common format for representing binary data in a text file. It is widely used in embedded systems and programmable logic devices.

The ihex_parser class provides a method for parsing IHEX files and invoking a callback function for each data record found in the file.

Author
Your Name
Date
YYYY-MM-DD

Definition at line 39 of file ihex_parser.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum

The maximum size of data in a single IHEX record.

Definition at line 43 of file ihex_parser.h.

Member Function Documentation

◆ parse()

bool util::ihex_parser::parse ( std::istream & is,
std::function< bool(uint64_t, uint64_t, const uint8_t *)> cb )
static

Parses an IHEX file from the given input stream and invokes a callback function for each data record found.

Parameters
inputThe input stream containing the IHEX file.
callbackA function object that will be invoked for each data record found in the IHEX file. The callback function should return true to continue parsing, or false to stop parsing.
Returns
True if the parsing was successful, false otherwise.

Definition at line 41 of file ihex_parser.cpp.


The documentation for this struct was generated from the following files:
  • /home/eyck/Projects/MINRES/SystemC-Components/src/common/util/ihex_parser.h
  • /home/eyck/Projects/MINRES/SystemC-Components/src/common/util/ihex_parser.cpp