New block style instructions doubt

Hi all guys,

I have just been reading instructions for makin new fashion signal
processing block, and I have a certain doubt:

In the following link:
http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide

you can see for example this in public header file:

namespace gr {
namespace foo {

class FOO_API bar : virtual public gr_sync_block

and in this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7

it is written:

class MODNAME_API classname : public gr_sync_block

becomes

class MODNAME_API classname : public gr::sync_block

Does this mean that header file in the first link should contain:

namespace gr {
namespace foo {

class FOO_API bar : virtual public sync_block

If I am right, than maybe the tutorial page should be changed.

Best
Nemanja

Nemanja,

first note that we’re in the middle of moving to 3.7.
So things will definitely be out of sync.

However, those two docs describe two different things:

On Thu, May 16, 2013 at 01:30:43PM +0200, Nemanja S. wrote:

In the following link:
http://gnuradio.org/redmine/projects/gnuradio/wiki/BlocksCodingGuide

[…]

This describes how to code blocks, and is valid for 3.6.

and in this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/Move_3-6_to_3-7

[…]

This describes what you have to do if you have old code, and want it to
be compatible with 3.7.

If I am right, than maybe the tutorial page should be changed.

There will be changes, yes. But 3.7 is still under heavy development,
and before it is not finalized, no need to update the docs. Only if you
are operating on next, this would affect you–in this case, we assume
you know what you’re doing.
Still, thanks for proof-reading the docs. My philosophy here is that
outdated docs are worse than none, but the 3.6 series not yet outdated.

MB


Karlsruhe Institute of Technology (KIT)
Communications Engineering Lab (CEL)

Dipl.-Ing. Martin B.
Research Associate

Kaiserstraße 12
Building 05.01
76131 Karlsruhe

Phone: +49 721 608-43790
Fax: +49 721 608-46071
www.cel.kit.edu

KIT – University of the State of Baden-Württemberg and
National Laboratory of the Helmholtz Association