Write stream to file.
More...
#include <file_sink.h>
|
virtual int | work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)=0 |
| just like gr::block::general_work, only this arranges to call consume_each for you More...
|
|
void | forecast (int noutput_items, gr_vector_int &ninput_items_required) |
| Estimate input requirements given output request. More...
|
|
int | general_work (int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items) |
| compute output items from input items More...
|
|
int | fixed_rate_ninput_to_noutput (int ninput) |
| Given ninput samples, return number of output samples that will be produced. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. More...
|
|
int | fixed_rate_noutput_to_ninput (int noutput) |
| Given noutput samples, return number of input samples required to produce noutput. N.B. this is only defined if fixed_rate returns true. Generally speaking, you don't need to override this. More...
|
|
| file_sink_base () |
|
| ~file_sink_base () |
|
bool | open (const char *filename) |
| Open filename and begin output to it. More...
|
|
void | close () |
| Close current output file. More...
|
|
void | do_update () |
| if we've had an update, do it now. More...
|
|
void | set_unbuffered (bool unbuffered) |
| turn on unbuffered writes for slower outputs More...
|
|
enum | vcolor { WHITE,
GREY,
BLACK
} |
|
| sync_block (void) |
|
| sync_block (const std::string &name, gr::io_signature::sptr input_signature, gr::io_signature::sptr output_signature) |
|
| file_sink_base (const char *filename, bool is_binary, bool append) |
|
std::vector< long > | d_max_output_buffer |
|
std::vector< long > | d_min_output_buffer |
|
gr::thread::mutex | d_setlock |
|
gr::logger_ptr | d_logger |
|
gr::logger_ptr | d_debug_logger |
|
FILE * | d_fp |
|
FILE * | d_new_fp |
|
bool | d_updated |
|
bool | d_is_binary |
|
boost::mutex | d_mutex |
|
bool | d_unbuffered |
|
bool | d_append |
|
static sptr gr::blocks::file_sink::make |
( |
size_t |
itemsize, |
|
|
const char * |
filename, |
|
|
bool |
append = false |
|
) |
| |
|
static |
Make a file sink.
- Parameters
-
itemsize | size of the input data items. |
filename | name of the file to open and write output to. |
append | if true, data is appended to the file instead of overwriting the initial content. |
The documentation for this class was generated from the following file: