The srecord::input_generator_constant class is used to represent the state of a data generator which supplies constant bytes.
More...
#include <constant.h>
|
std::string | filename () const |
| The filename method is used to get the name of the input file being processed. 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...
|
|
unsigned char | generate_data (unsigned long address) |
| The generate_data method is used to manufacture data for a specific address. More...
|
|
bool | read (record &record) |
| The read method is used to read one record from the input. 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...
|
|
The srecord::input_generator_constant class is used to represent the state of a data generator which supplies constant bytes.
Definition at line 32 of file constant.h.
◆ ~input_generator_constant()
virtual srecord::input_generator_constant::~input_generator_constant |
( |
| ) |
|
|
virtual |
◆ create()
static pointer srecord::input_generator_constant::create |
( |
const interval & |
range, |
|
|
unsigned char |
datum |
|
) |
| |
|
static |
The create class method is used to create new dynamically allocated instances of this class.
◆ filename()
std::string srecord::input_generator_constant::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_constant::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.
◆ generate_data()
unsigned char srecord::input_generator_constant::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.
The documentation for this class was generated from the following file: