[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Adding Accessor Methods in GR 3.7
From: |
Ed Criscuolo |
Subject: |
[Discuss-gnuradio] Adding Accessor Methods in GR 3.7 |
Date: |
Fri, 6 Jun 2014 13:44:36 -0400 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:17.0) Gecko/20130328 Thunderbird/17.0.5 |
I've recently converted to GR 3.7, and am currently on 3.7.3.
I have created and run a new block in C++, but now want to add
an accessor method to the block's class. I defined it in
<new_class_name>_impl.h , in the public part of the
class declaration as follows:
float get_samples_per_second(void)
{
return d_samples_per_second;
}
This compiles fine, but when I try to access it from
GRC via a function probe, I get:
AttributeError: 'acq_test_1_cc_sptr' object has no attribute
'get_samples_per_second'
Is there some additional 3.7 swig magic I have to go through
to make this accessor available from python?
@(^.^)@ Ed
- [Discuss-gnuradio] Adding Accessor Methods in GR 3.7,
Ed Criscuolo <=
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Martin Braun, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Ed Criscuolo, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Ed Criscuolo, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Tom Rondeau, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Ed Criscuolo, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Tom Rondeau, 2014/06/06
- Re: [Discuss-gnuradio] Adding Accessor Methods in GR 3.7, Ed Criscuolo, 2014/06/06