GNU Radio Manual and C++ API Reference
3.9.1.0
The Free & Open Software Radio Ecosystem
pdu_to_tagged_stream.h
Go to the documentation of this file.
1
/* -*- c++ -*- */
2
/*
3
* Copyright 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_BLOCKS_PDU_TO_TAGGED_STREAM_H
12
#define INCLUDED_BLOCKS_PDU_TO_TAGGED_STREAM_H
13
14
#include <
gnuradio/blocks/api.h
>
15
#include <
gnuradio/blocks/pdu.h
>
16
#include <
gnuradio/tagged_stream_block.h
>
17
18
namespace
gr
{
19
namespace
blocks {
20
21
/*!
22
* \brief Turns received PDUs into a tagged stream of items
23
* \ingroup message_tools_blk
24
*/
25
class
BLOCKS_API
pdu_to_tagged_stream
:
virtual
public
tagged_stream_block
26
{
27
public
:
28
// gr::blocks::pdu_to_tagged_stream::sptr
29
typedef
std::shared_ptr<pdu_to_tagged_stream>
sptr
;
30
31
/*!
32
* \brief Construct a pdu_to_tagged_stream block
33
* \param type PDU type of pdu::vector_type
34
* \param lengthtagname The name of the tag that specifies how long the packet is.
35
* Defaults to 'packet_len'.
36
*/
37
static
sptr
make(
pdu::vector_type
type,
38
const
std::string& lengthtagname =
"packet_len"
);
39
};
40
41
}
/* namespace blocks */
42
}
/* namespace gr */
43
44
#endif
/* INCLUDED_BLOCKS_PDU_TO_TAGGED_STREAM_H */
gr::blocks::pdu::vector_type
vector_type
Definition:
pdu.h:22
api.h
BLOCKS_API
#define BLOCKS_API
Definition:
gr-blocks/include/gnuradio/blocks/api.h:18
tagged_stream_block.h
pdu.h
gr::blocks::pdu_to_tagged_stream::sptr
std::shared_ptr< pdu_to_tagged_stream > sptr
Definition:
pdu_to_tagged_stream.h:29
gr::blocks::pdu_to_tagged_stream
Turns received PDUs into a tagged stream of items.
Definition:
pdu_to_tagged_stream.h:25
gr
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition:
basic_block.h:29
gr::tagged_stream_block
Block that operates on PDUs in form of tagged streams.
Definition:
tagged_stream_block.h:25
gr-blocks
include
gnuradio
blocks
pdu_to_tagged_stream.h
Generated by
1.8.17