23#ifndef INCLUDED_BLOCKS_FILE_SOURCE_H
24#define INCLUDED_BLOCKS_FILE_SOURCE_H
40 typedef boost::shared_ptr<file_source>
sptr;
75 virtual bool seek(int64_t seek_point,
int whence) = 0;
86 open(
const char* filename,
bool repeat, uint64_t offset = 0, uint64_t len = 0) = 0;
Read stream from file.
Definition file_source.h:37
virtual bool seek(int64_t seek_point, int whence)=0
seek file to seek_point relative to whence
boost::shared_ptr< file_source > sptr
Definition file_source.h:40
virtual void close()=0
Close the file handle.
virtual void open(const char *filename, bool repeat, uint64_t offset=0, uint64_t len=0)=0
Opens a new file.
static sptr make(size_t itemsize, const char *filename, bool repeat=false, uint64_t offset=0, uint64_t len=0)
Create a file source.
virtual void set_begin_tag(pmt::pmt_t val)=0
Add a stream tag to the first sample of the file if true.
repeat each input repeat times
Definition repeat.h:42
synchronous 1:1 input to output with history
Definition sync_block.h:38
#define BLOCKS_API
Definition gr-blocks/include/gnuradio/blocks/api.h:30
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition basic_block.h:46
boost::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost....
Definition pmt.h:96