Re: [Discuss-gnuradio] Extending a GNU Radio block with use of inheritance

2016-06-02 Thread Piotr Krysik
W dniu 02.06.2016 o 12:12, Sylvain Munaut pisze: > Hi, > >> but I still don't know how to use inheritance to extend >> existing blocks (something that in a lot of cases would make perfect sense). > You can't. > > The whole _impl coding pattern is specifically designed to hide the > internals to out

Re: [Discuss-gnuradio] Extending a GNU Radio block with use of inheritance

2016-06-02 Thread Sylvain Munaut
Hi, > but I still don't know how to use inheritance to extend > existing blocks (something that in a lot of cases would make perfect sense). You can't. The whole _impl coding pattern is specifically designed to hide the internals to outsiders and as such, you just can't extend it from an outside

Re: [Discuss-gnuradio] Extending a GNU Radio block with use of inheritance

2016-06-02 Thread Piotr Krysik
W dniu 02.06.2016 o 11:28, Andrej Rode pisze: > Hello Piotr, > >> If I can inherit from *_impl classes - are you able to present how to do >> it? *_impl.h headers are not installed together with GNU Radio so I'm >> not able include them. > If you want to modify basic blocks shipped with GNU Radio y

Re: [Discuss-gnuradio] Extending a GNU Radio block with use of inheritance

2016-06-02 Thread Piotr Krysik
W dniu 02.06.2016 o 10:46, Andrej Rode pisze: > Hello Piotr, > > > > 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? > > If your extension of the block is a general enhancement someone

[Discuss-gnuradio] Extending a GNU Radio block with use of inheritance

2016-06-01 Thread Piotr Krysik
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