diff options
author | jcorgan | 2008-02-19 03:12:49 +0000 |
---|---|---|
committer | jcorgan | 2008-02-19 03:12:49 +0000 |
commit | 3a4437ae8b58dbd5ebfb193611da2d27e66d50c5 (patch) | |
tree | 42db8397982aeed8805212f09921534f05d9811d /gnuradio-core/src/lib | |
parent | ac5495a48abacd740c37f9e79d1bbfff218107c3 (diff) | |
download | gnuradio-3a4437ae8b58dbd5ebfb193611da2d27e66d50c5.tar.gz gnuradio-3a4437ae8b58dbd5ebfb193611da2d27e66d50c5.tar.bz2 gnuradio-3a4437ae8b58dbd5ebfb193611da2d27e66d50c5.zip |
Merged Tim Meehan's gr.and_*, gr.not_*, and gr.or_* blocks. Passes distcheck.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@7739 221aa14e-8319-0410-a670-987f0aec2ac5
Diffstat (limited to 'gnuradio-core/src/lib')
-rw-r--r-- | gnuradio-core/src/lib/gengen/Makefile.am | 11 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/Makefile.gen | 27 | ||||
-rwxr-xr-x | gnuradio-core/src/lib/gengen/generate_common.py | 3 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gengen_generated.i | 18 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_and_XX.cc.t | 62 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_and_XX.h.t | 54 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_and_XX.i.t | 33 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_not_XX.cc.t | 58 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_not_XX.h.t | 54 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_not_XX.i.t | 33 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_or_XX.cc.t | 62 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_or_XX.h.t | 54 | ||||
-rw-r--r-- | gnuradio-core/src/lib/gengen/gr_or_XX.i.t | 33 |
13 files changed, 501 insertions, 1 deletions
diff --git a/gnuradio-core/src/lib/gengen/Makefile.am b/gnuradio-core/src/lib/gengen/Makefile.am index 05c67ca6c..5282ad663 100644 --- a/gnuradio-core/src/lib/gengen/Makefile.am +++ b/gnuradio-core/src/lib/gengen/Makefile.am @@ -97,7 +97,16 @@ CODE_GENERATOR = \ gr_vector_sink_X.i.t \ gr_xor_XX.cc.t \ gr_xor_XX.h.t \ - gr_xor_XX.i.t + gr_xor_XX.i.t \ + gr_and_XX.cc.t \ + gr_and_XX.h.t \ + gr_and_XX.i.t \ + gr_or_XX.cc.t \ + gr_or_XX.h.t \ + gr_or_XX.i.t \ + gr_not_XX.cc.t \ + gr_not_XX.h.t \ + gr_not_XX.i.t # include $(srcdir)/Makefile.gen include Makefile.gen diff --git a/gnuradio-core/src/lib/gengen/Makefile.gen b/gnuradio-core/src/lib/gengen/Makefile.gen index e8ccdc8df..512576ac2 100644 --- a/gnuradio-core/src/lib/gengen/Makefile.gen +++ b/gnuradio-core/src/lib/gengen/Makefile.gen @@ -19,6 +19,9 @@ GENERATED_H = \ gr_add_vff.h \ gr_add_vii.h \ gr_add_vss.h \ + gr_and_bb.h \ + gr_and_ii.h \ + gr_and_ss.h \ gr_argmax_fs.h \ gr_argmax_is.h \ gr_argmax_ss.h \ @@ -59,6 +62,12 @@ GENERATED_H = \ gr_noise_source_f.h \ gr_noise_source_i.h \ gr_noise_source_s.h \ + gr_not_bb.h \ + gr_not_ii.h \ + gr_not_ss.h \ + gr_or_bb.h \ + gr_or_ii.h \ + gr_or_ss.h \ gr_packed_to_unpacked_bb.h \ gr_packed_to_unpacked_ii.h \ gr_packed_to_unpacked_ss.h \ @@ -112,6 +121,9 @@ GENERATED_I = \ gr_add_vff.i \ gr_add_vii.i \ gr_add_vss.i \ + gr_and_bb.i \ + gr_and_ii.i \ + gr_and_ss.i \ gr_argmax_fs.i \ gr_argmax_is.i \ gr_argmax_ss.i \ @@ -152,6 +164,12 @@ GENERATED_I = \ gr_noise_source_f.i \ gr_noise_source_i.i \ gr_noise_source_s.i \ + gr_not_bb.i \ + gr_not_ii.i \ + gr_not_ss.i \ + gr_or_bb.i \ + gr_or_ii.i \ + gr_or_ss.i \ gr_packed_to_unpacked_bb.i \ gr_packed_to_unpacked_ii.i \ gr_packed_to_unpacked_ss.i \ @@ -205,6 +223,9 @@ GENERATED_CC = \ gr_add_vff.cc \ gr_add_vii.cc \ gr_add_vss.cc \ + gr_and_bb.cc \ + gr_and_ii.cc \ + gr_and_ss.cc \ gr_argmax_fs.cc \ gr_argmax_is.cc \ gr_argmax_ss.cc \ @@ -245,6 +266,12 @@ GENERATED_CC = \ gr_noise_source_f.cc \ gr_noise_source_i.cc \ gr_noise_source_s.cc \ + gr_not_bb.cc \ + gr_not_ii.cc \ + gr_not_ss.cc \ + gr_or_bb.cc \ + gr_or_ii.cc \ + gr_or_ss.cc \ gr_packed_to_unpacked_bb.cc \ gr_packed_to_unpacked_ii.cc \ gr_packed_to_unpacked_ss.cc \ diff --git a/gnuradio-core/src/lib/gengen/generate_common.py b/gnuradio-core/src/lib/gengen/generate_common.py index 70b5a595b..089d7d380 100755 --- a/gnuradio-core/src/lib/gengen/generate_common.py +++ b/gnuradio-core/src/lib/gengen/generate_common.py @@ -59,6 +59,9 @@ others = ( ('gr_unpacked_to_packed_XX', ('bb','ss','ii')), ('gr_packed_to_unpacked_XX', ('bb','ss','ii')), ('gr_xor_XX', ('bb','ss','ii')), + ('gr_and_XX', ('bb','ss','ii')), + ('gr_or_XX', ('bb','ss','ii')), + ('gr_not_XX', ('bb','ss','ii')), ('gr_sample_and_hold_XX', ('bb','ss','ii','ff')), ('gr_argmax_XX', ('fs','is','ss')), ('gr_max_XX', ('ff','ii','ss')), diff --git a/gnuradio-core/src/lib/gengen/gengen_generated.i b/gnuradio-core/src/lib/gengen/gengen_generated.i index 39d9a0bb7..a4de58dbe 100644 --- a/gnuradio-core/src/lib/gengen/gengen_generated.i +++ b/gnuradio-core/src/lib/gengen/gengen_generated.i @@ -19,6 +19,9 @@ #include <gr_add_vff.h> #include <gr_add_vii.h> #include <gr_add_vss.h> +#include <gr_and_bb.h> +#include <gr_and_ii.h> +#include <gr_and_ss.h> #include <gr_argmax_fs.h> #include <gr_argmax_is.h> #include <gr_argmax_ss.h> @@ -59,6 +62,12 @@ #include <gr_noise_source_f.h> #include <gr_noise_source_i.h> #include <gr_noise_source_s.h> +#include <gr_not_bb.h> +#include <gr_not_ii.h> +#include <gr_not_ss.h> +#include <gr_or_bb.h> +#include <gr_or_ii.h> +#include <gr_or_ss.h> #include <gr_packed_to_unpacked_bb.h> #include <gr_packed_to_unpacked_ii.h> #include <gr_packed_to_unpacked_ss.h> @@ -112,6 +121,9 @@ %include <gr_add_vff.i> %include <gr_add_vii.i> %include <gr_add_vss.i> +%include <gr_and_bb.i> +%include <gr_and_ii.i> +%include <gr_and_ss.i> %include <gr_argmax_fs.i> %include <gr_argmax_is.i> %include <gr_argmax_ss.i> @@ -152,6 +164,12 @@ %include <gr_noise_source_f.i> %include <gr_noise_source_i.i> %include <gr_noise_source_s.i> +%include <gr_not_bb.i> +%include <gr_not_ii.i> +%include <gr_not_ss.i> +%include <gr_or_bb.i> +%include <gr_or_ii.i> +%include <gr_or_ss.i> %include <gr_packed_to_unpacked_bb.i> %include <gr_packed_to_unpacked_ii.i> %include <gr_packed_to_unpacked_ss.i> diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t new file mode 100644 index 000000000..cef21d333 --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_and_XX.cc.t @@ -0,0 +1,62 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <@NAME@.h> +#include <gr_io_signature.h> + +@SPTR_NAME@ +gr_make_@BASE_NAME@ () +{ + return @SPTR_NAME@ (new @NAME@ ()); +} + +@NAME@::@NAME@ () + : gr_sync_block ("@BASE_NAME@", + gr_make_io_signature (1, -1, sizeof (@I_TYPE@)), + gr_make_io_signature (1, 1, sizeof (@O_TYPE@))) +{ +} + +int +@NAME@::work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items) +{ + @O_TYPE@ *optr = (@O_TYPE@ *) output_items[0]; + + int ninputs = input_items.size (); + + for (int i = 0; i < noutput_items; i++) { + @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i]; + for (int j = 1; j < ninputs; j++) + acc = acc & ((@I_TYPE@ *) input_items[j])[i]; + + *optr++ = (@O_TYPE@) acc; + } + return noutput_items; +} diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.h.t b/gnuradio-core/src/lib/gengen/gr_and_XX.h.t new file mode 100644 index 000000000..07abe8962 --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_and_XX.h.t @@ -0,0 +1,54 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifndef @GUARD_NAME@ +#define @GUARD_NAME@ + +#include <gr_sync_block.h> + +class @NAME@; +typedef boost::shared_ptr<@NAME@> @SPTR_NAME@; + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +/*! + * \brief output = input_0 & input_1 & , ... & input_N) + * \ingroup math + * + * bitwise boolean and across all input streams. + */ +class @NAME@ : public gr_sync_block +{ + friend @SPTR_NAME@ gr_make_@BASE_NAME@ (); + + @NAME@ (); + + public: + + int work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items); +}; + +#endif diff --git a/gnuradio-core/src/lib/gengen/gr_and_XX.i.t b/gnuradio-core/src/lib/gengen/gr_and_XX.i.t new file mode 100644 index 000000000..e17d40eea --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_and_XX.i.t @@ -0,0 +1,33 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@) + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +class @NAME@ : public gr_sync_block +{ + private: + @NAME@ (); +}; diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t new file mode 100644 index 000000000..272987411 --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_not_XX.cc.t @@ -0,0 +1,58 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <@NAME@.h> +#include <gr_io_signature.h> + +@SPTR_NAME@ +gr_make_@BASE_NAME@ () +{ + return @SPTR_NAME@ (new @NAME@ ()); +} + +@NAME@::@NAME@ () + : gr_sync_block ("@BASE_NAME@", + gr_make_io_signature (1, 1, sizeof (@I_TYPE@)), + gr_make_io_signature (1, 1, sizeof (@O_TYPE@))) +{ +} + +int +@NAME@::work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items) +{ + @O_TYPE@ *optr = (@O_TYPE@ *) output_items[0]; + const @I_TYPE@ *inptr = (const @I_TYPE@ *) input_items[0]; + + + for (int i = 0; i < noutput_items; i++) { + *optr++ = ~(inptr[i]); + } + return noutput_items; +} diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.h.t b/gnuradio-core/src/lib/gengen/gr_not_XX.h.t new file mode 100644 index 000000000..0a287683a --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_not_XX.h.t @@ -0,0 +1,54 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifndef @GUARD_NAME@ +#define @GUARD_NAME@ + +#include <gr_sync_block.h> + +class @NAME@; +typedef boost::shared_ptr<@NAME@> @SPTR_NAME@; + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +/*! + * \brief output = ~input_0 + * \ingroup math + * + * bitwise boolean not across input stream. + */ +class @NAME@ : public gr_sync_block +{ + friend @SPTR_NAME@ gr_make_@BASE_NAME@ (); + + @NAME@ (); + + public: + + int work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items); +}; + +#endif diff --git a/gnuradio-core/src/lib/gengen/gr_not_XX.i.t b/gnuradio-core/src/lib/gengen/gr_not_XX.i.t new file mode 100644 index 000000000..e17d40eea --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_not_XX.i.t @@ -0,0 +1,33 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@) + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +class @NAME@ : public gr_sync_block +{ + private: + @NAME@ (); +}; diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t b/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t new file mode 100644 index 000000000..e118cdbbb --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_or_XX.cc.t @@ -0,0 +1,62 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + +#include <@NAME@.h> +#include <gr_io_signature.h> + +@SPTR_NAME@ +gr_make_@BASE_NAME@ () +{ + return @SPTR_NAME@ (new @NAME@ ()); +} + +@NAME@::@NAME@ () + : gr_sync_block ("@BASE_NAME@", + gr_make_io_signature (1, -1, sizeof (@I_TYPE@)), + gr_make_io_signature (1, 1, sizeof (@O_TYPE@))) +{ +} + +int +@NAME@::work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items) +{ + @O_TYPE@ *optr = (@O_TYPE@ *) output_items[0]; + + int ninputs = input_items.size (); + + for (int i = 0; i < noutput_items; i++) { + @I_TYPE@ acc = ((@I_TYPE@ *) input_items[0])[i]; + for (int j = 1; j < ninputs; j++) + acc = acc | ((@I_TYPE@ *) input_items[j])[i]; + + *optr++ = (@O_TYPE@) acc; + } + return noutput_items; +} diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.h.t b/gnuradio-core/src/lib/gengen/gr_or_XX.h.t new file mode 100644 index 000000000..027bbb586 --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_or_XX.h.t @@ -0,0 +1,54 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +#ifndef @GUARD_NAME@ +#define @GUARD_NAME@ + +#include <gr_sync_block.h> + +class @NAME@; +typedef boost::shared_ptr<@NAME@> @SPTR_NAME@; + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +/*! + * \brief output = input_0 | input_1 | , ... | input_N) + * \ingroup math + * + * bitwise boolean or across all input streams. + */ +class @NAME@ : public gr_sync_block +{ + friend @SPTR_NAME@ gr_make_@BASE_NAME@ (); + + @NAME@ (); + + public: + + int work (int noutput_items, + gr_vector_const_void_star &input_items, + gr_vector_void_star &output_items); +}; + +#endif diff --git a/gnuradio-core/src/lib/gengen/gr_or_XX.i.t b/gnuradio-core/src/lib/gengen/gr_or_XX.i.t new file mode 100644 index 000000000..e17d40eea --- /dev/null +++ b/gnuradio-core/src/lib/gengen/gr_or_XX.i.t @@ -0,0 +1,33 @@ +/* -*- c++ -*- */ +/* + * Copyright 2004,2008 Free Software Foundation, Inc. + * + * This file is part of GNU Radio + * + * GNU Radio is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3, or (at your option) + * any later version. + * + * GNU Radio is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with GNU Radio; see the file COPYING. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, + * Boston, MA 02110-1301, USA. + */ + +// @WARNING@ + +GR_SWIG_BLOCK_MAGIC(gr,@BASE_NAME@) + +@SPTR_NAME@ gr_make_@BASE_NAME@ (); + +class @NAME@ : public gr_sync_block +{ + private: + @NAME@ (); +}; |