The srecord::input_generator_repeat class is used to represent generating data which cycles over a fixed set of byte values.
More...
#include <repeat.h>
|
virtual | ~input_generator_repeat () |
| The destructor.
|
|
virtual | ~input_generator () |
| The destructor.
|
|
| input_generator (const interval &range) |
| The constructor.
|
|
virtual | ~input () |
| The destructor.
|
|
virtual void | fatal_error (const char *,...) const FORMAT_PRINTF(2 |
| The fatal_error method is used to report problems parsing the file.
|
|
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.
|
|
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.
|
|
virtual std::string | filename_and_line (void) const |
| The filename_and_line method is used to get the name and current line number within the file.
|
|
void | set_quit (quit &) |
| The set_quit method is used to set the disposition of the error messages, and the "exit" implementation.
|
|
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.
|
|
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.
|
|
|
static pointer | create (const interval &range, unsigned char *data, size_t length) |
| The create class method is used to create new dynamically allocated instances of this class.
|
|
static input::pointer | create (arglex_tool *cmdln) |
| The create class method may be used to create new instances of input data generators.
|
|
|
unsigned char | generate_data (unsigned long address) |
| The generate_data method is used to manufacture data for a specific address.
|
|
std::string | filename () const |
| The filename method is used to get the name of the input file being processed.
|
|
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.
|
|
bool | read (record &record) |
| The read method is used to read one record from the input.
|
|
void | disable_checksum_validation () |
| The disable_checksum_validation method is used to have this input stream ignore checksum errors.
|
|
| input () |
| The default constructor.
|
|
The srecord::input_generator_repeat class is used to represent generating data which cycles over a fixed set of byte values.
Definition at line 32 of file repeat.h.
◆ ~input_generator_repeat()
virtual srecord::input_generator_repeat::~input_generator_repeat |
( |
| ) |
|
|
virtual |
◆ create()
static pointer srecord::input_generator_repeat::create |
( |
const interval & | range, |
|
|
unsigned char * | data, |
|
|
size_t | length ) |
|
static |
The create class method is used to create new dynamically allocated instances of this class.
- Parameters
-
range | The address range over which to generate data. |
data | Pointer to the base of an array of data to be repeated. |
length | The length of the array of data to be repeated. |
◆ generate_data()
unsigned char srecord::input_generator_repeat::generate_data |
( |
unsigned long | address | ) |
|
|
protectedvirtual |
The generate_data method is used to manufacture data for a specific address.
- Parameters
-
address | The address to generate data for. |
- Returns
- one byte of data
Implements srecord::input_generator.
◆ filename()
std::string srecord::input_generator_repeat::filename |
( |
| ) |
const |
|
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.
◆ get_file_format_name()
const char * srecord::input_generator_repeat::get_file_format_name |
( |
| ) |
const |
|
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.
The documentation for this class was generated from the following file: