diff options
author | jcorgan | 2006-12-18 05:12:26 +0000 |
---|---|---|
committer | jcorgan | 2006-12-18 05:12:26 +0000 |
commit | e8fee7f683e3898a66eb2a91448bdb0c72cba64f (patch) | |
tree | 91682f407b42d33592f5e9f56bbc21fad5858641 | |
parent | 5d9d2e48124fc6b981c35b69536001221678e871 (diff) | |
download | gnuradio-e8fee7f683e3898a66eb2a91448bdb0c72cba64f.tar.gz gnuradio-e8fee7f683e3898a66eb2a91448bdb0c72cba64f.tar.bz2 gnuradio-e8fee7f683e3898a66eb2a91448bdb0c72cba64f.zip |
Remove example from C++ directory.
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@4128 221aa14e-8319-0410-a670-987f0aec2ac5
-rw-r--r-- | gnuradio-examples/c++/Makefile.am | 3 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/Makefile.am | 56 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/dialtone.cc | 48 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/dialtone.h | 33 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/main.cc | 38 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/output.cc | 41 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/output.h | 33 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/siggen.cc | 42 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/siggen.h | 33 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/sink.cc | 45 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/sink.h | 33 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/source.cc | 41 | ||||
-rw-r--r-- | gnuradio-examples/c++/hier/source.h | 33 |
13 files changed, 1 insertions, 478 deletions
diff --git a/gnuradio-examples/c++/Makefile.am b/gnuradio-examples/c++/Makefile.am index 4630d6933..828a38af8 100644 --- a/gnuradio-examples/c++/Makefile.am +++ b/gnuradio-examples/c++/Makefile.am @@ -22,6 +22,5 @@ include $(top_srcdir)/Makefile.common SUBDIRS = \ - dial_tone \ - hier + dial_tone diff --git a/gnuradio-examples/c++/hier/Makefile.am b/gnuradio-examples/c++/hier/Makefile.am deleted file mode 100644 index f9d341eb7..000000000 --- a/gnuradio-examples/c++/hier/Makefile.am +++ /dev/null @@ -1,56 +0,0 @@ -# -# Copyright 2006 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 2, 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. -# - -include $(top_srcdir)/Makefile.common - -# For compiling within the GNU Radio build tree -INCLUDES=$(STD_DEFINES_AND_INCLUDES) \ - -I$(top_srcdir)/gr-audio-alsa/src - -GR_AUDIO_ALSA_LIBS=$(top_builddir)/gr-audio-alsa/src/libgr_audio_alsa.la - -# For compiling outside the tree, these are the usual -# INCLUDES = -I/usr/local/include -I/usr/local/include/gnuradio -# GNURADIO_CORE_LIBS = -lgnuradio-core -# GR_AUDIO_ALSA_LIBS = -lgr_audio_alsa - -noinst_PROGRAMS = dialtone - -noinst_HEADERS = \ - dialtone.h \ - sink.h \ - source.h \ - siggen.h \ - output.h - -dialtone_SOURCES = \ - dialtone.cc \ - source.cc \ - sink.cc \ - siggen.cc \ - output.cc \ - main.cc - -dialtone_LDADD = \ - $(GNURADIO_CORE_LIBS) \ - $(GR_AUDIO_ALSA_LIBS) - -MOSTLYCLEANFILES = *~ diff --git a/gnuradio-examples/c++/hier/dialtone.cc b/gnuradio-examples/c++/hier/dialtone.cc deleted file mode 100644 index eb77cf27b..000000000 --- a/gnuradio-examples/c++/hier/dialtone.cc +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <dialtone.h> -#include <gr_io_signature.h> -#include <source.h> -#include <gr_kludge_copy.h> -#include <sink.h> - -// Shared pointer constructor -dialtone_sptr make_dialtone() -{ - return dialtone_sptr(new dialtone()); -} - -// Hierarchical block constructor, with no inputs or outputs -dialtone::dialtone() : -gr_hier_block2("dialtone", - gr_make_io_signature(0,0,0), - gr_make_io_signature(0,0,0)) -{ - define_component("source", make_source()); - define_component("copy", gr_make_kludge_copy(sizeof(float))); - define_component("sink", make_sink()); - - connect("source", 0, "copy", 0); - connect("source", 1, "copy", 1); - connect("copy", 0, "sink", 0); - connect("copy", 1, "sink", 1); -} diff --git a/gnuradio-examples/c++/hier/dialtone.h b/gnuradio-examples/c++/hier/dialtone.h deleted file mode 100644 index 2beb46c50..000000000 --- a/gnuradio-examples/c++/hier/dialtone.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <gr_hier_block2.h> - -class dialtone; -typedef boost::shared_ptr<dialtone> dialtone_sptr; -dialtone_sptr make_dialtone(); - -class dialtone : public gr_hier_block2 -{ -private: - dialtone(); - friend dialtone_sptr make_dialtone(); -}; diff --git a/gnuradio-examples/c++/hier/main.cc b/gnuradio-examples/c++/hier/main.cc deleted file mode 100644 index beefac3a5..000000000 --- a/gnuradio-examples/c++/hier/main.cc +++ /dev/null @@ -1,38 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -// GNU Radio C++ application -// -// Instantiate a top block -// Instantiate a runtime, passing it the top block -// Tell the runtime to go... - -#include <dialtone.h> -#include <gr_runtime.h> - -int main() -{ - dialtone_sptr top_block = make_dialtone(); - gr_runtime_sptr runtime = gr_make_runtime(top_block); - - runtime->run(); - return 0; -} diff --git a/gnuradio-examples/c++/hier/output.cc b/gnuradio-examples/c++/hier/output.cc deleted file mode 100644 index 88ee96e58..000000000 --- a/gnuradio-examples/c++/hier/output.cc +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <output.h> -#include <gr_io_signature.h> -#include <audio_alsa_sink.h> - -// Shared pointer constructor -output_sptr make_output() -{ - return output_sptr(new output()); -} - -output::output() : -gr_hier_block2("output", - gr_make_io_signature(2,2,sizeof(float)), - gr_make_io_signature(0,0,0)) -{ - define_component("audio", audio_alsa_make_sink(48000)); - - connect("self", 0, "audio", 0); - connect("self", 1, "audio", 1); -} diff --git a/gnuradio-examples/c++/hier/output.h b/gnuradio-examples/c++/hier/output.h deleted file mode 100644 index c2f5c99e4..000000000 --- a/gnuradio-examples/c++/hier/output.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <gr_hier_block2.h> - -class output; -typedef boost::shared_ptr<class output> output_sptr; -output_sptr make_output(); - -class output : public gr_hier_block2 -{ -private: - output(); - friend output_sptr make_output(); -}; diff --git a/gnuradio-examples/c++/hier/siggen.cc b/gnuradio-examples/c++/hier/siggen.cc deleted file mode 100644 index f3b4f6733..000000000 --- a/gnuradio-examples/c++/hier/siggen.cc +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <siggen.h> -#include <gr_io_signature.h> -#include <gr_sig_source_f.h> - -// Shared pointer constructor -siggen_sptr make_siggen() -{ - return siggen_sptr(new siggen()); -} - -siggen::siggen() : -gr_hier_block2("siggen", - gr_make_io_signature(0,0,0), - gr_make_io_signature(2,2,sizeof(float))) -{ - define_component("siggen0", gr_make_sig_source_f(48000, GR_SIN_WAVE, 350, 0.5)); - define_component("siggen1", gr_make_sig_source_f(48000, GR_SIN_WAVE, 440, 0.5)); - - connect("siggen0", 0, "self", 0); - connect("siggen1", 0, "self", 1); -} diff --git a/gnuradio-examples/c++/hier/siggen.h b/gnuradio-examples/c++/hier/siggen.h deleted file mode 100644 index 6169882c6..000000000 --- a/gnuradio-examples/c++/hier/siggen.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <gr_hier_block2.h> - -class siggen; -typedef boost::shared_ptr<class siggen> siggen_sptr; -siggen_sptr make_siggen(); - -class siggen : public gr_hier_block2 -{ -private: - siggen(); - friend siggen_sptr make_siggen(); -}; diff --git a/gnuradio-examples/c++/hier/sink.cc b/gnuradio-examples/c++/hier/sink.cc deleted file mode 100644 index f073eb982..000000000 --- a/gnuradio-examples/c++/hier/sink.cc +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <sink.h> -#include <gr_io_signature.h> -#include <gr_kludge_copy.h> -#include <output.h> - -// Shared pointer constructor -sink_sptr make_sink() -{ - return sink_sptr(new sink()); -} - -sink::sink() : -gr_hier_block2("sink", - gr_make_io_signature(2,2,sizeof(float)), - gr_make_io_signature(0,0,0)) -{ - define_component("copy", gr_make_kludge_copy(sizeof(float))); - define_component("output", make_output()); - - connect("self", 0, "copy", 0); - connect("self", 1, "copy", 1); - connect("copy", 0, "output", 0); - connect("copy", 1, "output", 1); -} diff --git a/gnuradio-examples/c++/hier/sink.h b/gnuradio-examples/c++/hier/sink.h deleted file mode 100644 index 5428b59a6..000000000 --- a/gnuradio-examples/c++/hier/sink.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <gr_hier_block2.h> - -class sink; -typedef boost::shared_ptr<sink> sink_sptr; -sink_sptr make_sink(); - -class sink : public gr_hier_block2 -{ -private: - sink(); - friend sink_sptr make_sink(); -}; diff --git a/gnuradio-examples/c++/hier/source.cc b/gnuradio-examples/c++/hier/source.cc deleted file mode 100644 index 816f3aa2f..000000000 --- a/gnuradio-examples/c++/hier/source.cc +++ /dev/null @@ -1,41 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <source.h> -#include <gr_io_signature.h> -#include <siggen.h> - -// Shared pointer constructor -source_sptr make_source() -{ - return source_sptr(new source()); -} - -source::source() : -gr_hier_block2("source", - gr_make_io_signature(0,0,0), - gr_make_io_signature(2,2,sizeof(float))) -{ - define_component("siggen", make_siggen()); - - connect("siggen", 0, "self", 0); - connect("siggen", 1, "self", 1); -} diff --git a/gnuradio-examples/c++/hier/source.h b/gnuradio-examples/c++/hier/source.h deleted file mode 100644 index 8057726c9..000000000 --- a/gnuradio-examples/c++/hier/source.h +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright 2006 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 2, 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. - */ - -#include <gr_hier_block2.h> - -class source; -typedef boost::shared_ptr<source> source_sptr; -source_sptr make_source(); - -class source : public gr_hier_block2 -{ -private: - source(); - friend source_sptr make_source(); -}; |