gr-baz Package
|
#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 | |
![]() | |
typedef boost::shared_ptr < file_source > | sptr |
![]() | |
static sptr | make (size_t itemsize, const char *filename, bool repeat=false) |
Create a file source. | |
![]() | |
enum | vcolor { WHITE, GREY, BLACK } |
![]() | |
gr_sync_block (void) | |
gr_sync_block (const std::string &name, gr_io_signature_sptr input_signature, gr_io_signature_sptr output_signature) | |
![]() | |
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.