|
From: | Gabriel Pechiarovich |
Subject: | Re: [Discuss-gnuradio] About Polymorphic types in gnuradio |
Date: | Wed, 6 Jan 2016 11:13:41 -0500 |
Hi Gabriel,
do you know what kind of PMT VECT is? pmt_t is a container, and might contain a lot of different things.
Is it a pmt::vector, or a pmt::uniform_vector, or a list, or something else?
For an overview, I'd like to point you to the polymorphic types page in the GNU Radio manual [1].
Best regards,
Marcus
[1] https://gnuradio.org/doc/doxygen/page_pmt.html
On 06.01.2016 16:10, Gabriel Pechiarovich wrote:
Hi, I've been working in oot modules in gnuradio for a while, but recently I've been trying to program blocks who can handle messages.
I've extracted the input data and replicated it at the output, like this:
pmt::pmt_t META = pmt::car(PDU);pmt::pmt_t VECT = pmt::cdr(PDU);std::cout << "Vect: " << VECT<< '\n';message_port_pub(pmt::mp("out_pdu"), pmt::cons(META, VECT));
But I can't understand how to handle VECT, I want to change the VECT values; add some values, basicaly operate this VECT.
If anyone can help me I'll be gratefull.--
Gabriel Pechiarovich Salas
_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
_______________________________________________
Discuss-gnuradio mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |