discuss-gnuradio
[Top][All Lists]
Advanced

[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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]