23 #ifndef INCLUDED_FEC_GENERIC_ENCODER_H
24 #define INCLUDED_FEC_GENERIC_ENCODER_H
29 #include <boost/shared_ptr.hpp>
41 virtual void generic_work(
void *in_buffer,
void *out_buffer) = 0;
46 std::string
alias(){
return (boost::format(
"%s%d")%d_name%unique_id()).str(); }
58 virtual double rate() = 0;
69 virtual int get_input_size() = 0;
82 virtual int get_output_size() = 0;
103 virtual const char* get_input_conversion();
120 virtual const char* get_output_conversion();
129 virtual bool set_frame_size(
unsigned int frame_size) = 0;
std::string logger_ptr
Definition: logger.h:65
int my_id
Definition: generic_encoder.h:43
FEC_API const char * get_encoder_output_conversion(generic_encoder::sptr my_encoder)
shared_ptr documentation stub
Definition: shared_ptr_docstub.h:15
Definition: generic_encoder.h:34
boost::shared_ptr< generic_encoder > sptr
Definition: generic_encoder.h:49
#define FEC_API
Definition: gr-fec/include/gnuradio/fec/api.h:30
static int base_unique_id
Definition: generic_encoder.h:42
gr::logger_ptr d_logger
Definition: generic_encoder.h:37
FEC_API int get_encoder_input_size(generic_encoder::sptr my_encoder)
VOLK_API $kern pname $kern name
A function pointer to the dispatcher implementation.
std::string alias()
Definition: generic_encoder.h:46
Creates the encoder block for use in GNU Radio flowgraphs from a given FECAPI object derived from the...
Definition: encoder.h:47
FEC_API int get_encoder_output_size(generic_encoder::sptr my_encoder)
FEC_API const char * get_encoder_input_conversion(generic_encoder::sptr my_encoder)
generic_encoder(void)
Definition: generic_encoder.h:131
std::string d_name
Definition: generic_encoder.h:45