GNU Radio 3.6.5 C++ API

gr::blocks::file_source_impl Class Reference

#include <file_source_impl.h>

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

List of all members.

Public Member Functions

 file_source_impl (size_t itemsize, const char *filename, bool repeat)
 ~file_source_impl ()
bool seek (long seek_point, int whence)
 seek file to seek_point relative to whence
void open (const char *filename, bool repeat)
 Opens a new file.
void close ()
 Close the file handle.
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you

Constructor & Destructor Documentation

gr::blocks::file_source_impl::file_source_impl ( size_t  itemsize,
const char *  filename,
bool  repeat 
)
gr::blocks::file_source_impl::~file_source_impl ( )

Member Function Documentation

void gr::blocks::file_source_impl::close ( ) [virtual]

Close the file handle.

Implements gr::blocks::file_source.

void gr::blocks::file_source_impl::open ( const char *  filename,
bool  repeat 
) [virtual]

Opens a new file.

Parameters:
filenamename of the file to source from
repeatrepeat file from start

Implements gr::blocks::file_source.

bool gr::blocks::file_source_impl::seek ( long  seek_point,
int  whence 
) [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)

Implements gr::blocks::file_source.

int gr::blocks::file_source_impl::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
) [virtual]

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


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