Monday, December 23, 2013

Re: [Discuss-gnuradio] OOT enums

Thank you all for the ideas so far.  I unfortunately will not be able to play around with this until the new year, but I will post back then if I get it working to help people down the road.

Michael


On Thu, Dec 19, 2013 at 1:08 PM, Sylvain Munaut <246tnt@gmail.com> wrote:
Hi,

For what it's worth, I have enums in fosphor and the way I had to
access them is :

from gnuradio.fosphor.fosphor_swig import base_sink_c
base_sink_c.REF_DOWN

Because the base_sink_c from gnuradio.fosphor directly isn't really
the SWIG object ... it's just the wrapper for the make() function that
creates the sptr and you can't access any of the members.

Cheers,

    Sylvain

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

No comments:

Post a Comment