23 #ifndef INCLUDED_BLOCKS_FILE_META_SINK_IMPL_H
24 #define INCLUDED_BLOCKS_FILE_META_SINK_IMPL_H
45 double d_relative_rate;
46 size_t d_max_seg_size;
47 size_t d_total_seg_size;
55 FILE *d_new_fp, *d_new_hdr_fp;
56 FILE *d_fp, *d_hdr_fp;
60 void write_header(FILE *fp,
pmt_t header,
pmt_t extra);
62 void update_last_header();
63 void update_last_header_inline();
64 void update_last_header_detached();
65 void write_and_update();
66 void update_rx_time();
68 bool _open(FILE **fp,
const char *filename);
72 double samp_rate=1,
double relative_rate=1,
74 size_t max_segment_size=1000000,
75 const std::string &extra_dict=
"",
76 bool detached_header=
false);
79 bool open(
const std::string &filename);
83 void set_unbuffered(
bool unbuffered)
85 d_unbuffered = unbuffered;
88 int work(
int noutput_items,