Forum: GNU Radio gr_make_io_signaturev

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Dad63495ad946099d72d3a24387d0ed6?d=identicon&s=25 Brett L. Trotter (Guest)
on 2008-11-05 20:30
(Received via mailing list)
Are there any examples of how to use this?

Since the current C++ (until C++0x is out) doesn't support vector
initialization, how does one format the inheritance constructor?
for example:
myblock::myblock(...) : gr_block("myblock", gr_make_io_signaturev(4,4,
std::vector<int> somevec)) { ...}

in what code do I populate somevec? or is there another way to attack
this?
745d8202ef5a58c1058d0e5395a78f9c?d=identicon&s=25 Eric Blossom (Guest)
on 2008-11-05 20:36
(Received via mailing list)
On Wed, Nov 05, 2008 at 01:29:21PM -0600, Brett L. Trotter wrote:
> Are there any examples of how to use this?
>
> Since the current C++ (until C++0x is out) doesn't support vector
> initialization, how does one format the inheritance constructor?
> for example:
> myblock::myblock(...) : gr_block("myblock", gr_make_io_signaturev(4,4,
> std::vector<int> somevec)) { ...}
>
> in what code do I populate somevec? or is there another way to attack this?

Take a look at gr_io_signature.cc.  It uses gr_make_io_signaturev to
implement the other versions.

Do you really have more than 3 different kinds of items in your
signature?

Eric
This topic is locked and can not be replied to.