Main Page | Modules | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

gr_file_sink Class Reference
[Signal Sinks]

#include <gr_file_sink.h>

Inheritance diagram for gr_file_sink:

Inheritance graph
[legend]
Collaboration diagram for gr_file_sink:

Collaboration graph
[legend]
List of all members.

Detailed Description

Write stream to file.


Public Member Functions

 ~gr_file_sink ()
bool open (const char *filename)
 Open filename and begin output to it.
void close ()
 Close current output file.
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

Protected Member Functions

 gr_file_sink (size_t itemsize, const char *filename)

Friends

gr_file_sink_sptr gr_make_file_sink (size_t itemsize, const char *filename)


Constructor & Destructor Documentation

gr_file_sink::gr_file_sink size_t  itemsize,
const char *  filename
[protected]
 

gr_file_sink::~gr_file_sink  ) 
 


Member Function Documentation

void gr_file_sink::close  ) 
 

Close current output file.

Closes current output file and ignores any output until open is called to connect to another file.

bool gr_file_sink::open const char *  filename  ) 
 

Open filename and begin output to it.

int gr_file_sink::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.


Friends And Related Function Documentation

gr_file_sink_sptr gr_make_file_sink size_t  itemsize,
const char *  filename
[friend]
 


The documentation for this class was generated from the following files:
Generated on Sat Jul 8 17:12:04 2006 for GNU Radio 2.x by  doxygen 1.4.1