11#ifndef INCLUDED_BLOCKS_FILE_META_SINK_H
12#define INCLUDED_BLOCKS_FILE_META_SINK_H
62 typedef std::shared_ptr<file_meta_sink>
sptr;
84 const std::string& filename,
86 double relative_rate = 1,
89 size_t max_segment_size = 1000000,
91 bool detached_header =
false);
93 virtual bool open(
const std::string& filename) = 0;
synchronous 1:1 input to output with history
Definition: sync_block.h:26
#define BLOCKS_API
Definition: gr-blocks/include/gnuradio/blocks/api.h:18
constexpr char METADATA_VERSION
Definition: file_meta_sink.h:20
gr_file_types
Definition: file_meta_sink.h:23
@ GR_FILE_LONG
Definition: file_meta_sink.h:28
@ GR_FILE_BYTE
Definition: file_meta_sink.h:24
@ GR_FILE_DOUBLE
Definition: file_meta_sink.h:31
@ GR_FILE_CHAR
Definition: file_meta_sink.h:25
@ GR_FILE_FLOAT
Definition: file_meta_sink.h:30
@ GR_FILE_INT
Definition: file_meta_sink.h:27
@ GR_FILE_LONG_LONG
Definition: file_meta_sink.h:29
@ GR_FILE_SHORT
Definition: file_meta_sink.h:26
constexpr size_t METADATA_HEADER_SIZE
Definition: file_meta_sink.h:21
GR_RUNTIME_API size_t itemsize(types::vector_type type)
GNU Radio logging wrapper.
Definition: basic_block.h:29
std::shared_ptr< pmt_base > pmt_t
typedef for shared pointer (transparent reference counting).
Definition: pmt.h:83
PMT_API pmt_t make_dict()
Make an empty dictionary.