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(); }
49 typedef boost::shared_ptr<generic_encoder>
sptr;
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;
int my_id
Definition: generic_encoder.h:43
FEC_API const char * get_encoder_output_conversion(generic_encoder::sptr my_encoder)
GNU Radio logging wrapper for log4cpp library (C++ port of log4j)
Definition: basic_block.h:43
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)
log4cpp::Category * logger_ptr
GR_LOG macrosThese macros wrap the standard LOG4CPP_LEVEL macros. The availablie macros are: LOG_DEBU...
Definition: logger.h:71
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: gr-fec/include/gnuradio/fec/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