srecord
1.65.0
|
The srecord::input_catenate class is used to represent an input source which presents two inoput sources as if they were a single input source. More...
#include <catenate.h>
Public Member Functions | |
virtual | ~input_catenate () |
The destructor. More... | |
![]() | |
virtual | ~input () |
The destructor. More... | |
virtual void | fatal_error (const char *,...) const FORMAT_PRINTF(2 |
The fatal_error method is used to report problems parsing the file. More... | |
virtual void virtual void | fatal_error_errno (const char *,...) const FORMAT_PRINTF(2 |
The fatal_error_errno method is used to report problems reading the input file. More... | |
virtual void virtual void virtual void | warning (const char *,...) const FORMAT_PRINTF(2 |
The warning method is used to report potential (but non-fatal) problems parsing the file. More... | |
void | set_quit (quit &) |
The set_quit method is used to set the disposition of the error messages, and the "exit" implementation. More... | |
void | reset_quit (void) |
The reset_quit method is used to cause the disposition of the error messages, and the "exit" back to the default. More... | |
virtual void | command_line (srecord::arglex_tool *cmdln) |
The command_line method is used by arglex_srec::get_input when parsing the command line, to give a format or filter an opportunity to grab extra arguments off the command line. More... | |
Static Public Member Functions | |
static pointer | create (const pointer &in1, const pointer &in2) |
The create class method is used to create new dynamically allocated instances of this class. More... | |
Protected Member Functions | |
bool | read (record &record) |
The read method is used to read one record from the input. More... | |
std::string | filename () const |
The filename method is used to get the name of the input file being processed. More... | |
std::string | filename_and_line () const |
The filename_and_line method is used to get the name and current line number within the file. More... | |
const char * | get_file_format_name () const |
The get_file_format_name method is used to find out the name of the file format being read. More... | |
void | disable_checksum_validation () |
The disable_checksum_validation method is used to have this input stream ignore checksum errors. More... | |
![]() | |
input () | |
The default constructor. More... | |
Additional Inherited Members | |
![]() | |
typedef std::shared_ptr< input > | pointer |
The srecord::input_catenate class is used to represent an input source which presents two inoput sources as if they were a single input source.
Definition at line 31 of file catenate.h.
|
virtual |
The destructor.
The create class method is used to create new dynamically allocated instances of this class.
in1 | The first of the inputs to be read. |
in2 | The second of the inputs to be read. |
|
protectedvirtual |
The read method is used to read one record from the input.
It returns 0 at the end of the input, and 1 if a record is read successfully.
See the srecord::record documentation (header file) for details of the various record types.
Note: there is no guarantee that a header record will appear first, or that a execution start address record will appear last.
rec | Where to put the returned data. |
Implements srecord::input.
|
protectedvirtual |
The filename method is used to get the name of the input file being processed.
Derived classes must supply this method.
Implements srecord::input.
|
protectedvirtual |
The filename_and_line method is used to get the name and current line number within the file.
The default implementation simply calls the filename method and returns that. Text formats should be cleverer.
Reimplemented from srecord::input.
|
protectedvirtual |
The get_file_format_name method is used to find out the name of the file format being read.
Derived classes must supply this method.
Implements srecord::input.
|
protectedvirtual |
The disable_checksum_validation method is used to have this input stream ignore checksum errors.
Implements srecord::input.