GNU Radio 3.6.5 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 | |
void | open (const char *filename, bool repeat) |
Opens a new file. | |
void | close () |
Close the file handle. | |
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 | ( | ) |
void gr::blocks::file_source_impl::close | ( | ) | [virtual] |
Close the file handle.
Implements gr::blocks::file_source.
void gr::blocks::file_source_impl::open | ( | const char * | filename, |
bool | repeat | ||
) | [virtual] |
Opens a new file.
filename | name of the file to source from |
repeat | repeat file from start |
Implements gr::blocks::file_source.
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.