[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Discuss-gnuradio] reuse c++ modules in c++ code
From: |
Johnathan Corgan |
Subject: |
Re: [Discuss-gnuradio] reuse c++ modules in c++ code |
Date: |
Tue, 13 Apr 2010 00:09:00 -0700 |
On Mon, Apr 12, 2010 at 17:31, Kyle Zhou <address@hidden> wrote:
> I am writing a new c++ signal processing block and wondering if I can use
> existing gnuradio modules in this new module. I know reuse c++ modules in
> python is easy via swig. When it comes to reusing in c++, what is the best
> way? I can think of inheritance. But what if I want to use multiple existing
> modules?
It is possible to write hierarchical blocks in C++, which compose
existing blocks into an internal flowgraph:
http://gnuradio.org/redmine/repositories/browse/gnuradio/gnuradio-core/src/lib/hier
You do not need to call the work() function of the internal blocks;
the runtime figures all this out for you.
Johnathan