#include <gr_file_sink.h>
Public Member Functions | |
~gr_file_sink () | |
bool | open (const char *filename) |
Open filename and begin output to it. | |
void | close () |
Close current output file. | |
int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
just like gr_block::general_work, only this arranges to call consume_each for you | |
Protected Member Functions | |
gr_file_sink (size_t itemsize, const char *filename) | |
Friends | |
gr_file_sink_sptr | gr_make_file_sink (size_t itemsize, const char *filename) |
gr_file_sink::gr_file_sink | ( | size_t | itemsize, | |
const char * | filename | |||
) | [protected] |
References open().
gr_file_sink::~gr_file_sink | ( | ) |
References close().
bool gr_file_sink::open | ( | const char * | filename | ) |
Open filename and begin output to it.
References close(), NULL, OUR_O_BINARY, and OUR_O_LARGEFILE.
Referenced by gr_file_sink().
void gr_file_sink::close | ( | ) |
Close current output file.
Closes current output file and ignores any output until open is called to connect to another file.
Referenced by open(), and ~gr_file_sink().
int gr_file_sink::work | ( | int | noutput_items, | |
gr_vector_const_void_star & | input_items, | |||
gr_vector_void_star & | output_items | |||
) | [virtual] |
just like gr_block::general_work, only this arranges to call consume_each for you
The user must override work to define the signal processing code
Implements gr_sync_block.
gr_file_sink_sptr gr_make_file_sink | ( | size_t | itemsize, | |
const char * | filename | |||
) | [friend] |