19#ifndef SRECORD_OUTPUT_FILTER_REBLOCK_H
20#define SRECORD_OUTPUT_FILTER_REBLOCK_H
34class output_filter_reblock:
38 typedef std::shared_ptr<output_filter_reblock>
pointer;
109 unsigned long buffer_address;
119 unsigned char *buffer;
140 void track_block_size(
void);
151 void flush_buffer(
bool partial);
156 output_filter_reblock();
161 output_filter_reblock(
const output_filter_reblock &);
166 output_filter_reblock &operator=(
const output_filter_reblock &);
void write(const record &r)
The write method is used to write a recordonto an output.
virtual ~output_filter_reblock()
The destructor.
void address_length_set(int)
The address_length_set method is used to set the minimum number of bytes to be written for addresses ...
std::shared_ptr< output_filter_reblock > pointer
static pointer create(const output::pointer &deeper, bool align=false)
The create class method is used to create new dynamically allocated instanced of this class.
int preferred_block_size_get(void) const
The preferred_block_size_get method is used to get the proferred block size of the output fformat.
void line_length_set(int)
The set_line_length method is used to set the maximum length of an output line, for those formats for...
bool preferred_block_size_set(int nbytes)
The preferred_block_size_set method is is to set a precific number of bytes for the preferred block s...
output_filter(const output::pointer &deeper)
The constructor.
std::shared_ptr< output > pointer
The srecord::record class is used to represent a data record read from a file.