GNU Radio Manual and C++ API Reference  3.10.9.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>
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  */
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  */
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 */
Turns received PDUs into a tagged stream of items.
Definition: pdu_to_tagged_stream.h:26
static sptr make(gr::types::vector_type type, const std::string &lengthtagname="packet_len")
Construct a pdu_to_tagged_stream block.
std::shared_ptr< pdu_to_tagged_stream > sptr
Definition: pdu_to_tagged_stream.h:29
Block that operates on PDUs in form of tagged streams.
Definition: tagged_stream_block.h:26
#define PDU_API
Definition: gr-pdu/include/gnuradio/pdu/api.h:18
GR_RUNTIME_API const pmt::pmt_t pdu()
vector_type
Definition: pdu.h:44
GNU Radio logging wrapper.
Definition: basic_block.h:29