 |
GNU Radio C++ API Reference
3.10.12.0
The Free & Open Software Radio Ecosystem
|
|
Go to the documentation of this file.
11 #ifndef INCLUDED_BLOCKS_FILE_SOURCE_H
12 #define INCLUDED_BLOCKS_FILE_SOURCE_H
28 typedef std::shared_ptr<file_source>
sptr;
63 virtual bool seek(int64_t seek_point,
int whence) = 0;
74 open(
const char* filename,
bool repeat, uint64_t offset = 0, uint64_t len = 0) = 0;
virtual void close()=0
Close the file handle.
static sptr make(size_t itemsize, const char *filename, bool repeat=false, uint64_t offset=0, uint64_t len=0)
Create a file source.
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
virtual void set_begin_tag(pmt::pmt_t val)=0
Add a stream tag to the first sample of the file if true.
virtual bool seek(int64_t seek_point, int whence)=0
seek file to seek_point relative to whence
std::shared_ptr< file_source > sptr
Definition: file_source.h:28
GR_RUNTIME_API size_t itemsize(types::vector_type type)
Read stream from file.
Definition: file_source.h:25
synchronous 1:1 input to output with history
Definition: sync_block.h:26
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
repeat each input repeat times
Definition: repeat.h:30
virtual void open(const char *filename, bool repeat, uint64_t offset=0, uint64_t len=0)=0
Opens a new file.
GNU Radio logging wrapper.
Definition: basic_block.h:29