GNU Radio 3.7.1 C++ API
gr::blocks::tagged_file_sink Class Reference

A file sink that uses tags to save files. More...

#include <tagged_file_sink.h>

Inheritance diagram for gr::blocks::tagged_file_sink:

List of all members.

Public Types

typedef boost::shared_ptr
< tagged_file_sink
sptr

Static Public Member Functions

static sptr make (size_t itemsize, double samp_rate)
 Build a tagged_file_sink block.

Detailed Description

A file sink that uses tags to save files.

The sink uses a tag with the key 'burst' to trigger the saving of the burst data to a new file. If the value of this tag is True, it will open a new file and start writing all incoming data to it. If the tag is False, it will close the file (if already opened). The file names are based on the time when the burst tag was seen. If there is an 'rx_time' tag (standard with UHD sources), that is used as the time. If no 'rx_time' tag is found, the new time is calculated based off the sample rate of the block.


Member Typedef Documentation


Member Function Documentation

static sptr gr::blocks::tagged_file_sink::make ( size_t  itemsize,
double  samp_rate 
) [static]

Build a tagged_file_sink block.

Parameters:
itemsizeThe item size of the input data stream.
samp_rateThe sample rate used to determine the time difference between bursts

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