#include <file_meta_sink_impl.h>
List of all members.
Public Member Functions |
| file_meta_sink_impl (size_t itemsize, const std::string &filename, double samp_rate=1, double relative_rate=1, gr_file_types type=GR_FILE_FLOAT, bool complex=true, size_t max_segment_size=1000000, const std::string &extra_dict="", bool detached_header=false) |
| ~file_meta_sink_impl () |
bool | open (const std::string &filename) |
void | close () |
void | do_update () |
void | set_unbuffered (bool unbuffered) |
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 |
void | write_header (FILE *fp, pmt_t header, pmt_t extra) |
void | update_header (pmt_t key, pmt_t value) |
void | update_last_header () |
void | update_last_header_inline () |
void | update_last_header_detached () |
void | write_and_update () |
void | update_rx_time () |
bool | _open (FILE **fp, const char *filename) |
Constructor & Destructor Documentation
gr::blocks::file_meta_sink_impl::file_meta_sink_impl |
( |
size_t |
itemsize, |
|
|
const std::string & |
filename, |
|
|
double |
samp_rate = 1 , |
|
|
double |
relative_rate = 1 , |
|
|
gr_file_types |
type = GR_FILE_FLOAT , |
|
|
bool |
complex = true , |
|
|
size_t |
max_segment_size = 1000000 , |
|
|
const std::string & |
extra_dict = "" , |
|
|
bool |
detached_header = false |
|
) |
| |
gr::blocks::file_meta_sink_impl::~file_meta_sink_impl |
( |
| ) |
|
Member Function Documentation
bool gr::blocks::file_meta_sink_impl::_open |
( |
FILE ** |
fp, |
|
|
const char * |
filename |
|
) |
| [protected] |
void gr::blocks::file_meta_sink_impl::close |
( |
| ) |
[virtual] |
void gr::blocks::file_meta_sink_impl::do_update |
( |
| ) |
[virtual] |
bool gr::blocks::file_meta_sink_impl::open |
( |
const std::string & |
filename | ) |
[virtual] |
void gr::blocks::file_meta_sink_impl::set_unbuffered |
( |
bool |
unbuffered | ) |
[inline, virtual] |
void gr::blocks::file_meta_sink_impl::update_header |
( |
pmt_t |
key, |
|
|
pmt_t |
value |
|
) |
| [protected] |
void gr::blocks::file_meta_sink_impl::update_last_header |
( |
| ) |
[protected] |
void gr::blocks::file_meta_sink_impl::update_last_header_detached |
( |
| ) |
[protected] |
void gr::blocks::file_meta_sink_impl::update_last_header_inline |
( |
| ) |
[protected] |
void gr::blocks::file_meta_sink_impl::update_rx_time |
( |
| ) |
[protected] |
void gr::blocks::file_meta_sink_impl::write_and_update |
( |
| ) |
[protected] |
void gr::blocks::file_meta_sink_impl::write_header |
( |
FILE * |
fp, |
|
|
pmt_t |
header, |
|
|
pmt_t |
extra |
|
) |
| [protected] |
The documentation for this class was generated from the following file: