GNU Radio Manual and C++ API Reference
3.10.5.1
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_PDU_PDU_TO_TAGGED_STREAM_H
12
#define INCLUDED_PDU_PDU_TO_TAGGED_STREAM_H
13
14
#include <
gnuradio/pdu.h
>
15
#include <
gnuradio/pdu/api.h
>
16
#include <
gnuradio/tagged_stream_block.h
>
17
18
namespace
gr
{
19
namespace
pdu
{
20
21
/*!
22
* \brief Turns received PDUs into a tagged stream of items
23
* \ingroup message_tools_blk
24
*/
25
class
PDU_API
pdu_to_tagged_stream
:
virtual
public
tagged_stream_block
26
{
27
public
:
28
// gr::pdu::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 gr::types::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(
gr::types::vector_type
type,
38
const
std::string& lengthtagname =
"packet_len"
);
39
};
40
41
}
/* namespace pdu */
42
}
/* namespace gr */
43
44
#endif
/* INCLUDED_PDU_PDU_TO_TAGGED_STREAM_H */
gr::types::vector_type
vector_type
Definition:
pdu.h:44
tagged_stream_block.h
PDU_API
#define PDU_API
Definition:
gr-pdu/include/gnuradio/pdu/api.h:18
pdu.h
gr::msgport_names::pdu
const GR_RUNTIME_API pmt::pmt_t pdu()
gr
GNU Radio logging wrapper.
Definition:
basic_block.h:29
api.h
gr::tagged_stream_block
Block that operates on PDUs in form of tagged streams.
Definition:
tagged_stream_block.h:25
gr::pdu::pdu_to_tagged_stream
Turns received PDUs into a tagged stream of items.
Definition:
pdu_to_tagged_stream.h:25
gr::pdu::pdu_to_tagged_stream::sptr
std::shared_ptr< pdu_to_tagged_stream > sptr
Definition:
pdu_to_tagged_stream.h:29
gr-pdu
include
gnuradio
pdu
pdu_to_tagged_stream.h
Generated by
1.8.17