23#ifndef INCLUDED_BLOCKS_FILE_SOURCE_H
24#define INCLUDED_BLOCKS_FILE_SOURCE_H
40 typedef boost::shared_ptr<file_source>
sptr;
65 virtual bool seek(
long seek_point,
int whence) = 0;
73 virtual void open(
const char* filename,
bool repeat) = 0;
Read stream from file.
Definition: file_source.h:37
boost::shared_ptr< file_source > sptr
Definition: file_source.h:40
virtual void close()=0
Close the file handle.
virtual bool seek(long seek_point, int whence)=0
seek file to seek_point relative to whence
static sptr make(size_t itemsize, const char *filename, bool repeat=false)
Create a file source.
virtual void open(const char *filename, bool repeat)=0
Opens a new file.
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
BLOCKS_API size_t itemsize(vector_type type)
Include this header to use the message passing features.
Definition: basic_block.h:45
boost::intrusive_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting). See http://www.boost....
Definition: pmt.h:56