[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] Bidirectional communication between attached bloc

From: marco Ribero
Subject: Re: [Discuss-gnuradio] Bidirectional communication between attached blocks
Date: Mon, 20 Apr 2015 10:29:44 +0000

Thank you very much. Your solution is much cleaner.

Have a good day,

Il giorno lun 20 apr 2015 alle ore 09:29 Marcus Müller <address@hidden> ha scritto:
Hi marco,

what you describe as ID already exist: every block has a function alias(), giving it a string "name", which can be used with global_block_registry::block_lookup(name) [1].

You will need to wrap your alias in a pmt::intern to get it into a stream tag, so use that with block_lookup, and cast the result to your_block_type::sptr.


[1] http://gnuradio.org/doc/doxygen/classgr_1_1block__registry.html#a67a83c42e2030bba463c99d51e7a8f92

reply via email to

[Prev in Thread] Current Thread [Next in Thread]