23 #ifndef INCLUDED_FEC_GENERIC_DECODER_H
24 #define INCLUDED_FEC_GENERIC_DECODER_H
28 #include <boost/shared_ptr.hpp>
29 #include <boost/format.hpp>
67 virtual void generic_work(
void *inbuffer,
void *outbuffer) = 0;
72 std::string
alias(){
return (boost::format(
"%s%d")%d_name%unique_id()).str(); }
88 virtual double rate() = 0;
99 virtual int get_input_size() = 0;
112 virtual int get_output_size() = 0;
146 virtual int get_input_item_size();
156 virtual int get_output_item_size();
182 virtual const char* get_input_conversion();
203 virtual const char* get_output_conversion();
212 virtual bool set_frame_size(
unsigned int frame_size) = 0;
std::string logger_ptr
Definition: logger.h:65
FEC_API const char * get_decoder_output_conversion(generic_decoder::sptr my_decoder)
FEC_API const char * get_decoder_input_conversion(generic_decoder::sptr my_decoder)
gr::logger_ptr d_logger
Definition: generic_decoder.h:63
std::string d_name
Definition: generic_decoder.h:71
static int base_unique_id
Definition: generic_decoder.h:68
General FEC decoding block that takes in a decoder variable object (derived from gr::fec::general_dec...
Definition: decoder.h:66
FEC_API int get_decoder_input_size(generic_decoder::sptr my_decoder)
Parent class for FECAPI objects.
Definition: generic_decoder.h:60
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
FEC_API int get_decoder_output_size(generic_decoder::sptr my_decoder)
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
generic_decoder(void)
Definition: generic_decoder.h:77
FEC_API int get_history(generic_decoder::sptr my_decoder)
FEC_API float get_shift(generic_decoder::sptr my_decoder)
boost::shared_ptr< generic_decoder > sptr
Definition: generic_decoder.h:75
VOLK_API $kern pname $kern name
A function pointer to the dispatcher implementation.
int my_id
Definition: generic_decoder.h:69
std::string alias()
Definition: generic_decoder.h:72
FEC_API int get_decoder_output_item_size(generic_decoder::sptr my_decoder)
FEC_API int get_decoder_input_item_size(generic_decoder::sptr my_decoder)