Common base class for file sinks.
More...
#include <gr_file_sink_base.h>
Public Member Functions |
| ~gr_file_sink_base () |
bool | open (const char *filename) |
| Open filename and begin output to it.
|
void | close () |
| Close current output file.
|
void | do_update () |
| if we've had an update, do it now.
|
void | set_unbuffered (bool unbuffered) |
| turn on unbuffered writes for slower outputs
|
Detailed Description
Common base class for file sinks.
Constructor & Destructor Documentation
gr_file_sink_base::gr_file_sink_base |
( |
const char * |
filename, |
|
|
bool |
is_binary |
|
) |
| |
|
protected |
gr_file_sink_base::~gr_file_sink_base |
( |
| ) |
|
Member Function Documentation
void gr_file_sink_base::close |
( |
| ) |
|
Close current output file.
Closes current output file and ignores any output until open is called to connect to another file.
void gr_file_sink_base::do_update |
( |
| ) |
|
if we've had an update, do it now.
bool gr_file_sink_base::open |
( |
const char * |
filename | ) |
|
Open filename and begin output to it.
void gr_file_sink_base::set_unbuffered |
( |
bool |
unbuffered | ) |
|
turn on unbuffered writes for slower outputs
Member Data Documentation
FILE* gr_file_sink_base::d_fp |
|
protected |
bool gr_file_sink_base::d_is_binary |
|
protected |
boost::mutex gr_file_sink_base::d_mutex |
|
protected |
FILE* gr_file_sink_base::d_new_fp |
|
protected |
bool gr_file_sink_base::d_unbuffered |
|
protected |
bool gr_file_sink_base::d_updated |
|
protected |
The documentation for this class was generated from the following file: