|
From: | Michael Dickens |
Subject: | Re: [Discuss-gnuradio] SWIG/C++ Template Expansion Info |
Date: | Thu, 30 Aug 2007 01:09:50 -0400 |
On Aug 29, 2007, at 11:23 PM, Eric Blossom wrote:
Can you point us to the code
I'll post the code for demo_sig_source instead once it compiles and works, most likely later today (for me, now, since I'm up way too late).
, and show for example, how you'd handle gr_sig_source*?
Since the X instantiations are 's', 'i', 'f', and 'c', and the only method that's non-standard is "::work", and there is only one "complex" type that I've ever seen used in GNU Radio ("gr_complex"), then I'll write the 'default' code for non-complex types since there are many more of them, and overload it for "gr_complex" specifically. The rest will be about the same as my current code for template expansion since all the other methods are common to all output types. This is the same method used for modifying the base name of the block (overloading a "make_name" method, one for each desired template type). - MLD
[Prev in Thread] | Current Thread | [Next in Thread] |