GNU Radio 3.6.5 C++ API

gr::blocks::file_meta_sink_impl Class Reference

#include <file_meta_sink_impl.h>

Inheritance diagram for gr::blocks::file_meta_sink_impl:
gr::blocks::file_meta_sink gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

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]
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

Implements 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]

The documentation for this class was generated from the following file: