GNU Radio v3.6.2-149-ga6d285d9 C++ API
gr::blocks::file_source Class Reference

Read stream from file. More...

#include <file_source.h>

Inheritance diagram for gr::blocks::file_source:
gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::blocks::file_source_impl

List of all members.

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)

Detailed Description

Read stream from file.


Member Typedef Documentation


Member Function Documentation

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

Parameters:
seek_pointsample offset in file
whenceone of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)

Implemented in gr::blocks::file_source_impl.


The documentation for this class was generated from the following file: