diff options
author | Johnathan Corgan | 2012-09-04 16:39:30 -0700 |
---|---|---|
committer | Johnathan Corgan | 2012-09-04 16:39:30 -0700 |
commit | c5ddf4c26bf8bc049622b2e9ffcdcdba3265b580 (patch) | |
tree | 54acb28c3be27cb222ead52795c1f7fbe1a8f121 /gr-blocks/include/blocks/vector_to_streams.h | |
parent | 73d59860c4cc0e2b22c21d56cd5cdfcb969263eb (diff) | |
download | gnuradio-c5ddf4c26bf8bc049622b2e9ffcdcdba3265b580.tar.gz gnuradio-c5ddf4c26bf8bc049622b2e9ffcdcdba3265b580.tar.bz2 gnuradio-c5ddf4c26bf8bc049622b2e9ffcdcdba3265b580.zip |
blocks: added gr::blocks::vector_to_streams
Diffstat (limited to 'gr-blocks/include/blocks/vector_to_streams.h')
-rw-r--r-- | gr-blocks/include/blocks/vector_to_streams.h | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/gr-blocks/include/blocks/vector_to_streams.h b/gr-blocks/include/blocks/vector_to_streams.h new file mode 100644 index 000000000..1bc075879 --- /dev/null +++ b/gr-blocks/include/blocks/vector_to_streams.h @@ -0,0 +1,49 @@ +/* -*- c++ -*- */ +/* + * Copyright 2012 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. + */ + +#ifndef INCLUDED_BLOCKS_VECTOR_TO_STREAMS_H +#define INCLUDED_BLOCKS_VECTOR_TO_STREAMS_H + +#include <blocks/api.h> +#include <gr_sync_block.h> + +namespace gr { + namespace blocks { + + /*! + * \brief Convert 1 stream of vectors of length N to N streams of items + * \ingroup slicedice_blk + */ + class BLOCKS_API vector_to_streams : virtual public gr_sync_block + { + public: + + // gr::blocks::vector_to_streams::sptr + typedef boost::shared_ptr<vector_to_streams> sptr; + + static sptr make(size_t itemsize, size_t nstreams); + }; + + } /* namespace blocks */ +} /* namespace gr */ + +#endif /* INCLUDED_BLOCKS_VECTOR_TO_STREAMS_H */ |