GNU Radio 3.6.5 C++ API

gr::blocks::file_descriptor_source_impl Class Reference

#include <file_descriptor_source_impl.h>

Inheritance diagram for gr::blocks::file_descriptor_source_impl:
gr::blocks::file_descriptor_source gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 file_descriptor_source_impl (size_t itemsize, int fd, bool repeat)
 ~file_descriptor_source_impl ()
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

int read_items (char *buf, int nitems)
int handle_residue (char *buf, int nbytes_read)
void flush_residue ()

Constructor & Destructor Documentation

gr::blocks::file_descriptor_source_impl::file_descriptor_source_impl ( size_t  itemsize,
int  fd,
bool  repeat 
)
gr::blocks::file_descriptor_source_impl::~file_descriptor_source_impl ( )

Member Function Documentation

void gr::blocks::file_descriptor_source_impl::flush_residue ( ) [inline, protected, virtual]
int gr::blocks::file_descriptor_source_impl::handle_residue ( char *  buf,
int  nbytes_read 
) [protected, virtual]
int gr::blocks::file_descriptor_source_impl::read_items ( char *  buf,
int  nitems 
) [protected, virtual]
int gr::blocks::file_descriptor_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: