gr_file_sink_base Class Reference

#include <gr_file_sink_base.h>

Inheritance diagram for gr_file_sink_base:

Inheritance graph
[legend]
Collaboration diagram for gr_file_sink_base:

Collaboration graph
[legend]

List of all members.


Detailed Description

Common base class for file sinks.

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.

Protected Member Functions

 gr_file_sink_base (const char *filename, bool is_binary)

Protected Attributes

FILE * d_fp
FILE * d_new_fp
bool d_updated
bool d_is_binary
omni_mutex d_mutex

Constructor & Destructor Documentation

gr_file_sink_base::gr_file_sink_base ( const char *  filename,
bool  is_binary 
) [protected]

References open().

gr_file_sink_base::~gr_file_sink_base (  ) 

References close(), and d_fp.


Member Function Documentation

bool gr_file_sink_base::open ( const char *  filename  ) 

Open filename and begin output to it.

References close(), d_is_binary, d_mutex, d_new_fp, d_updated, NULL, OUR_O_BINARY, and OUR_O_LARGEFILE.

Referenced by gr_file_sink::gr_file_sink(), and gr_file_sink_base().

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.

References d_mutex, d_new_fp, and d_updated.

Referenced by open(), and ~gr_file_sink_base().

void gr_file_sink_base::do_update (  ) 

if we've had an update, do it now.

References d_fp, d_mutex, d_new_fp, and d_updated.

Referenced by gr_file_sink::work().


Member Data Documentation

FILE* gr_file_sink_base::d_fp [protected]

FILE* gr_file_sink_base::d_new_fp [protected]

Referenced by close(), do_update(), and open().

bool gr_file_sink_base::d_updated [protected]

Referenced by close(), do_update(), and open().

Referenced by open().

Referenced by close(), do_update(), and open().


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

Generated on Thu Mar 27 14:42:42 2008 for GNU Radio 3.1.1 by  doxygen 1.5.5