GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
file_sink.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 2004,2007,2013 Free Software Foundation, Inc.
4
*
5
* This file is part of GNU Radio
6
*
7
* SPDX-License-Identifier: GPL-3.0-or-later
8
*
9
*/
10
11
#ifndef INCLUDED_GR_FILE_SINK_H
12
#define INCLUDED_GR_FILE_SINK_H
13
14
#include <
gnuradio/blocks/api.h
>
15
#include <
gnuradio/blocks/file_sink_base.h
>
16
#include <
gnuradio/sync_block.h
>
17
18
namespace
gr
{
19
namespace
blocks {
20
21
/*!
22
* \brief Write stream to file.
23
* \ingroup file_operators_blk
24
*/
25
class
BLOCKS_API
file_sink
:
virtual
public
sync_block
,
virtual
public
file_sink_base
26
{
27
public
:
28
// gr::blocks::file_sink::sptr
29
typedef
std::shared_ptr<file_sink>
sptr
;
30
31
/*!
32
* \brief Make a file sink.
33
* \param itemsize size of the input data items.
34
* \param filename name of the file to open and write output to.
35
* \param append if true, data is appended to the file instead of
36
* overwriting the initial content.
37
*/
38
static
sptr
make(
size_t
itemsize
,
const
char
* filename,
bool
append =
false
);
39
};
40
41
}
/* namespace blocks */
42
}
/* namespace gr */
43
44
#endif
/* INCLUDED_GR_FILE_SINK_H */
api.h
gr::blocks::pdu::itemsize
BLOCKS_API size_t itemsize(vector_type type)
file_sink_base.h
BLOCKS_API
#define BLOCKS_API
Definition:
gr-blocks/include/gnuradio/blocks/api.h:18
gr::sync_block
synchronous 1:1 input to output with history
Definition:
sync_block.h:25
gr::blocks::file_sink
Write stream to file.
Definition:
file_sink.h:25
gr::blocks::file_sink_base
Common base class for file sinks.
Definition:
file_sink_base.h:25
sync_block.h
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::blocks::file_sink::sptr
std::shared_ptr< file_sink > sptr
Definition:
file_sink.h:29
gr-blocks
include
gnuradio
blocks
file_sink.h
Generated by
1.8.17