|
GNU Radio 3.6.4.2 C++ API
|
#include <file_meta_sink_impl.h>
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) |
| 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 |
||
| ) |
| bool gr::blocks::file_meta_sink_impl::_open | ( | FILE ** | fp, |
| const char * | filename | ||
| ) | [protected] |
| void gr::blocks::file_meta_sink_impl::close | ( | ) | [virtual] |
Implements gr::blocks::file_meta_sink.
| void gr::blocks::file_meta_sink_impl::do_update | ( | ) | [virtual] |
Implements gr::blocks::file_meta_sink.
| bool gr::blocks::file_meta_sink_impl::open | ( | const std::string & | filename | ) | [virtual] |
Implements gr::blocks::file_meta_sink.
| void gr::blocks::file_meta_sink_impl::set_unbuffered | ( | bool | unbuffered | ) | [inline, virtual] |
Implements gr::blocks::file_meta_sink.
| 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] |
| int gr::blocks::file_meta_sink_impl::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
Reimplemented from gr_sync_block.
| 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] |