GNU Radio v3.6.2-149-ga6d285d9 C++ API
|
#include <file_source_impl.h>
Public Member Functions | |
file_source_impl (size_t itemsize, const char *filename, bool repeat) | |
~file_source_impl () | |
bool | seek (long seek_point, int whence) |
seek file to seek_point relative to whence | |
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 |
gr::blocks::file_source_impl::file_source_impl | ( | size_t | itemsize, |
const char * | filename, | ||
bool | repeat | ||
) |
gr::blocks::file_source_impl::~file_source_impl | ( | ) |
bool gr::blocks::file_source_impl::seek | ( | long | seek_point, |
int | whence | ||
) | [virtual] |
seek file to seek_point
relative to whence
seek_point | sample offset in file |
whence | one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek) |
Implements gr::blocks::file_source.
int gr::blocks::file_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.