GNU Radio 3.6.5 C++ API

gr::digital::packet_headergenerator_bb Class Reference

Generates a header for a tagged, streamed packet. More...

#include <packet_headergenerator_bb.h>

Inheritance diagram for gr::digital::packet_headergenerator_bb:
gr_tagged_stream_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter gr::digital::packet_headergenerator_bb_impl

List of all members.

Public Types

typedef boost::shared_ptr
< packet_headergenerator_bb
sptr

Static Public Member Functions

static sptr make (const packet_header_default::sptr &header_formatter, const std::string &len_tag_key="packet_len")
static sptr make (long header_len, const std::string &len_tag_key="packet_len")

Detailed Description

Generates a header for a tagged, streamed packet.

Input: A tagged stream. This is consumed entirely, it is not appended to the output stream. Output: An tagged stream containing the header. The details on the header are set in a header formatter object (of type packet_header_default or a subclass thereof). If only a number of bits is specified, a default header is generated (see packet_header_default).


Member Typedef Documentation


Member Function Documentation

static sptr gr::digital::packet_headergenerator_bb::make ( const packet_header_default::sptr header_formatter,
const std::string &  len_tag_key = "packet_len" 
) [static]
static sptr gr::digital::packet_headergenerator_bb::make ( long  header_len,
const std::string &  len_tag_key = "packet_len" 
) [static]

The documentation for this class was generated from the following file: