Hi all, I want to extend a little general_work function of one of the blocks (fractional_resampler) in order to add processing of stream tags that will change parameters of the block instance (i.e. call function set_mu) at a moment marked by a stream tag.
Probably the optimal solution in terms of code reuse would be to extend the block with use of inheritance. In this case general_work function of the base class would be called by general_work function of the derived class. However, I don't know how to do it. Inheriting from the class available in the installed header (fractional_resampler_cc.h) is not a good solution as it is an abstract class, so I would have to re-implement (copy) all of the blocks' functions. Is it possible to do what I want with use of inheritance? If yes - how to do it so I wouldn't have to copy the code? (Extending fractional_resampler_cc is just an example - there are more blocks that I would like to modify without having to copy all of the code). Best Regards, Piotr Krysik _______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio