|
GNU Radio 3.6.4.1 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 | |
Additional Inherited Members | |
Public Types inherited from gr::blocks::file_source | |
| typedef boost::shared_ptr < file_source > | sptr |
Static Public Member Functions inherited from gr::blocks::file_source | |
| static sptr | make (size_t itemsize, const char *filename, bool repeat=false) |
| Create a file source. | |
Protected Types inherited from gr_basic_block | |
| enum | vcolor { WHITE, GREY, BLACK } |
Protected Member Functions inherited from gr_sync_block | |
| gr_sync_block (void) | |
| gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature) | |
Protected Attributes inherited from gr_block | |
| std::vector< long > | d_max_output_buffer |
| std::vector< long > | d_min_output_buffer |
| gruel::mutex | d_setlock |
| gr::blocks::file_source_impl::file_source_impl | ( | size_t | itemsize, |
| const char * | filename, | ||
| bool | repeat | ||
| ) |
| gr::blocks::file_source_impl::~file_source_impl | ( | ) |
|
virtual |
Close the file handle.
Implements gr::blocks::file_source.
|
virtual |
Opens a new file.
| filename | name of the file to source from |
| repeat | repeat file from start |
Implements gr::blocks::file_source.
|
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.
|
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.