summaryrefslogtreecommitdiff
path: root/include/gnuradio/gr_io_signature.h
diff options
context:
space:
mode:
authorJosh Blum2012-10-28 22:39:39 -0700
committerJosh Blum2012-10-28 22:39:39 -0700
commit77f79c8e2c45d816a2ecb869b2869825b3293640 (patch)
tree888dfa430241024e0dd47248aa14a8a09394d469 /include/gnuradio/gr_io_signature.h
parent9620afa87986645653b171fb2c74c06597edb382 (diff)
downloadsandhi-77f79c8e2c45d816a2ecb869b2869825b3293640.tar.gz
sandhi-77f79c8e2c45d816a2ecb869b2869825b3293640.tar.bz2
sandhi-77f79c8e2c45d816a2ecb869b2869825b3293640.zip
work on stand-alone library build
Diffstat (limited to 'include/gnuradio/gr_io_signature.h')
-rw-r--r--include/gnuradio/gr_io_signature.h85
1 files changed, 0 insertions, 85 deletions
diff --git a/include/gnuradio/gr_io_signature.h b/include/gnuradio/gr_io_signature.h
deleted file mode 100644
index 0b32efb..0000000
--- a/include/gnuradio/gr_io_signature.h
+++ /dev/null
@@ -1,85 +0,0 @@
-//
-// Copyright 2012 Josh Blum
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Lesser General Public License as published by
-// the Free Software Foundation, either version 3 of the License, or
-// (at your option) any later version.
-//
-// This program 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 Lesser General Public License for more details.
-//
-// You should have received a copy of the GNU Lesser General Public License
-// along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-#ifndef INCLUDED_GNURADIO_GR_IO_SIGNATURE_H
-#define INCLUDED_GNURADIO_GR_IO_SIGNATURE_H
-
-#include <gnuradio/io_signature.hpp>
-#include <vector>
-
-typedef gnuradio::IOSignature gr_io_signature;
-typedef gr_io_signature gr_io_signature_sptr;
-
-inline gr_io_signature_sptr gr_make_io_signature(
- int min_streams,
- int max_streams,
- int sizeof_stream_item
-){
- gnuradio::IOSignature io_sig(min_streams, max_streams);
-
- if (io_sig.max_streams() != gr_io_signature::IO_INFINITE)
- {
- io_sig.resize(io_sig.max_streams(), sizeof_stream_item);
- }
- else
- {
- io_sig.resize(1, sizeof_stream_item);
- }
-
- return io_sig;
-}
-
-inline gr_io_signature_sptr gr_make_io_signature2(
- int min_streams,
- int max_streams,
- int sizeof_stream_item1,
- int sizeof_stream_item2
-){
- gnuradio::IOSignature io_sig(min_streams, max_streams);
- io_sig.push_back(sizeof_stream_item1);
- io_sig.push_back(sizeof_stream_item2);
- return io_sig;
-}
-
-inline gr_io_signature_sptr gr_make_io_signature3(
- int min_streams,
- int max_streams,
- int sizeof_stream_item1,
- int sizeof_stream_item2,
- int sizeof_stream_item3
-){
- gnuradio::IOSignature io_sig(min_streams, max_streams);
- io_sig.push_back(sizeof_stream_item1);
- io_sig.push_back(sizeof_stream_item2);
- io_sig.push_back(sizeof_stream_item3);
- return io_sig;
-}
-
-template <typename T>
-inline gr_io_signature_sptr gr_make_io_signaturev(
- int min_streams,
- int max_streams,
- const std::vector<T> &sizeof_stream_items
-){
- gnuradio::IOSignature io_sig(min_streams, max_streams);
- for (unsigned i = 0; i < sizeof_stream_items.size(); i++)
- {
- io_sig.push_back(sizeof_stream_items[i]);
- }
- return io_sig;
-}
-
-#endif /*INCLUDED_GNURADIO_GR_IO_SIGNATURE_H*/