19 #ifndef SRECORD_OUTPUT_H
20 #define SRECORD_OUTPUT_H
69 virtual void write_data(
unsigned long,
const void *,
size_t);
161 virtual
void warning(const
char *fmt, ...) const
168 virtual
void warning_v(const
char *fmt, va_list ap) const;
175 virtual const std::
string filename(
void) const = 0;
The srecord::output class is used to represent an abstract output vector.
virtual void virtual void warning_v(const char *fmt, va_list ap) const
The warning_v method is used to report likely but non-fatal errors.
virtual void write_data(unsigned long, const void *, size_t)
The write_data method is used to write data to the output.
virtual const char * format_name(void) const =0
The format_name method is used to obtain the name of this output format.
virtual ~output()
The destructor.
virtual void write_header(const record *=0)
The write_header method is used to write a header record to the output.
virtual void fatal_error_errno(const char *fmt,...) const FORMAT_PRINTF(2
The fatal_error_errno method is used to report fatal errors, and append the string equivalent of errn...
virtual const std::string filename(void) const =0
The filename method is used to determine the name of the output file.
virtual void virtual void fatal_error_v(const char *fmt, va_list ap) const
The fatal_error_v method is used to report fatal errors.
virtual void command_line(arglex_tool *cmdln)
The command_line method is used by arglex_srec::get_output when parsing the command line,...
virtual void fatal_error(const char *fmt,...) const FORMAT_PRINTF(2
The fatal_error method is used to report fatal errors.
virtual int preferred_block_size_get(void) const =0
The preferred_block_size_get method is used to get the proferred block size of the output fformat.
virtual void warning(const char *fmt,...) const FORMAT_PRINTF(2
The warning method is used to likely but non-fatal errors.
virtual void line_length_set(int cols)=0
The set_line_length method is used to set the maximum length of an output line, for those formats for...
std::shared_ptr< output > pointer
virtual void write(const record &rec)=0
The write method is used to write a recordonto an output.
virtual void virtual void fatal_error_errno_v(const char *fmt, va_list ap) const
The fatal_error_errno_v method is used to report fatal errors.
virtual bool preferred_block_size_set(int nbytes)=0
The preferred_block_size_set method is is to set a precific number of bytes for the preferred block s...
virtual void address_length_set(int nbytes)=0
The address_length_set method is used to set the minimum number of bytes to be written for addresses ...
virtual void notify_upper_bound(unsigned long addr)
The notify_upper_bound method is used to notify the output class of the upper bound (highest address ...
virtual void write_execution_start_address(const record *=0)
The write_execution_start_address method is used to write an execution start address record to the ou...
The srecord::record class is used to represent a data record read from a file.