GNU Radio v3.6.2-149-ga6d285d9 C++ API
|
Read stream from file. More...
#include <file_source.h>
Public Types | |
typedef boost::shared_ptr < file_source > | sptr |
Public Member Functions | |
virtual bool | seek (long seek_point, int whence)=0 |
seek file to seek_point relative to whence | |
Static Public Member Functions | |
static sptr | make (size_t itemsize, const char *filename, bool repeat=false) |
Read stream from file.
static sptr gr::blocks::file_source::make | ( | size_t | itemsize, |
const char * | filename, | ||
bool | repeat = false |
||
) | [static] |
virtual bool gr::blocks::file_source::seek | ( | long | seek_point, |
int | whence | ||
) | [pure 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) |
Implemented in gr::blocks::file_source_impl.