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(); }
75 typedef boost::shared_ptr<generic_decoder>
sptr;
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;
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
virtual float get_iterations()
Definition: generic_decoder.h:221
FEC_API int get_decoder_output_size(generic_decoder::sptr my_decoder)
Include this header to use the message passing features.
Definition: logger.h:131
#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)
log4cpp::Category * logger_ptr
GR_LOG macrosThese macros wrap the standard LOG4CPP_LEVEL macros. The availablie macros are: LOG_DEBU...
Definition: logger.h:149
FEC_API float get_shift(generic_decoder::sptr my_decoder)
boost::shared_ptr< generic_decoder > sptr
Definition: generic_decoder.h:75
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)