Read stream from file.
More...
#include <gr_file_source.h>
List of all members.
Detailed Description
Constructor & Destructor Documentation
| gr_file_source::gr_file_source |
( |
size_t |
itemsize, |
|
|
const char * |
filename, |
|
|
bool |
repeat |
|
) |
| [protected] |
| gr_file_source::~gr_file_source |
( |
| ) |
|
Member Function Documentation
| void gr_file_source::close |
( |
| ) |
|
| void gr_file_source::do_update |
( |
| ) |
[protected] |
| void gr_file_source::open |
( |
const char * |
filename, |
|
|
bool |
repeat |
|
) |
| |
Opens a new file.
- Parameters:
-
| filename | name of the file to source from |
| repeat | repeat file from start |
| bool gr_file_source::seek |
( |
long |
seek_point, |
|
|
int |
whence |
|
) |
| |
Seek file to seek_point relative to whence.
- Parameters:
-
| seek_point | sample offset in file |
| whence | one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek) |
Friends And Related Function Documentation
| GR_CORE_API gr_file_source_sptr gr_make_file_source |
( |
size_t |
itemsize, |
|
|
const char * |
filename, |
|
|
bool |
repeat |
|
) |
| [friend] |
Create a file source.
Opens filename as a source of items into a flowgraph. The data is expected to be in binary format, item after item. The itemsize of the block determines the conversion from bits to items.
If repeat is turned on, the file will repeat the file after it's reached the end.
- Parameters:
-
| itemsize | the size of each item in the file, in bytes |
| filename | name of the file to source from |
| repeat | repeat file from start |
Member Data Documentation
The documentation for this class was generated from the following file: