23#ifndef INCLUDED_FEC_TAGGED_ENCODER_H
24#define INCLUDED_FEC_TAGGED_ENCODER_H
29#include <boost/shared_ptr.hpp>
50 typedef boost::shared_ptr<tagged_encoder>
sptr;
64 size_t input_item_size,
65 size_t output_item_size,
66 const std::string& lengthtagname =
"packet_len",
69 virtual int work(
int noutput_items,
boost::shared_ptr< generic_encoder > sptr
Definition: generic_encoder.h:49
Creates the encoder block for use in GNU Radio flowgraphs from a given FECAPI object derived from the...
Definition: tagged_encoder.h:48
virtual int work(int noutput_items, gr_vector_int &ninput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)=0
Just like gr::block::general_work, but makes sure the input is valid.
virtual int calculate_output_stream_length(const gr_vector_int &ninput_items)=0
Calculate the number of output items.
boost::shared_ptr< tagged_encoder > sptr
Definition: tagged_encoder.h:50
static sptr make(generic_encoder::sptr my_encoder, size_t input_item_size, size_t output_item_size, const std::string &lengthtagname="packet_len", int mtu=1500)
Block that operates on PDUs in form of tagged streams.
Definition: tagged_stream_block.h:38
std::vector< const void * > gr_vector_const_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:40
std::vector< void * > gr_vector_void_star
Definition: gnuradio-runtime/include/gnuradio/types.h:39
std::vector< int > gr_vector_int
Definition: gnuradio-runtime/include/gnuradio/types.h:35
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
Include this header to use the message passing features.
Definition: basic_block.h:45