GNU Radio 3.6.5 C++ API

gr::blocks::file_meta_source_impl Class Reference

#include <file_meta_source_impl.h>

Inheritance diagram for gr::blocks::file_meta_source_impl:
gr::blocks::file_meta_source gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 file_meta_source_impl (const std::string &filename, bool repeat=false, bool detached_header=false, const std::string &hdr_filename="")
 ~file_meta_source_impl ()
bool open (const std::string &filename, const std::string &hdr_filename="")
void close ()
void do_update ()
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

bool _open (FILE **fp, const char *filename)
bool read_header (pmt_t &hdr, pmt_t &extras)
void parse_header (pmt_t hdr, uint64_t offset, std::vector< gr_tag_t > &tags)
void parse_extras (pmt_t extras, uint64_t offset, std::vector< gr_tag_t > &tags)

Constructor & Destructor Documentation

gr::blocks::file_meta_source_impl::file_meta_source_impl ( const std::string &  filename,
bool  repeat = false,
bool  detached_header = false,
const std::string &  hdr_filename = "" 
gr::blocks::file_meta_source_impl::~file_meta_source_impl ( )

Member Function Documentation

bool gr::blocks::file_meta_source_impl::_open ( FILE **  fp,
const char *  filename 
) [protected]
void gr::blocks::file_meta_source_impl::close ( ) [virtual]
void gr::blocks::file_meta_source_impl::do_update ( ) [virtual]
bool gr::blocks::file_meta_source_impl::open ( const std::string &  filename,
const std::string &  hdr_filename = "" 
) [virtual]
void gr::blocks::file_meta_source_impl::parse_extras ( pmt_t  extras,
uint64_t  offset,
std::vector< gr_tag_t > &  tags 
) [protected]
void gr::blocks::file_meta_source_impl::parse_header ( pmt_t  hdr,
uint64_t  offset,
std::vector< gr_tag_t > &  tags 
) [protected]
bool gr::blocks::file_meta_source_impl::read_header ( pmt_t hdr,
pmt_t extras 
) [protected]
int gr::blocks::file_meta_source_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.

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