diff options
author | Josh Blum | 2012-08-12 22:32:58 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-26 16:03:50 -0700 |
commit | d9bdc5678c800722c6f83bb4ae35e79b9bca5631 (patch) | |
tree | 50321a0e884627608fb18d1b67d8dea089b38f1c /include/gnuradio/element.hpp | |
parent | 070ba516d25462b464d381d86293cce880452b36 (diff) | |
download | sandhi-d9bdc5678c800722c6f83bb4ae35e79b9bca5631.tar.gz sandhi-d9bdc5678c800722c6f83bb4ae35e79b9bca5631.tar.bz2 sandhi-d9bdc5678c800722c6f83bb4ae35e79b9bca5631.zip |
runtime: more work on the shell stuff
Diffstat (limited to 'include/gnuradio/element.hpp')
-rw-r--r-- | include/gnuradio/element.hpp | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/include/gnuradio/element.hpp b/include/gnuradio/element.hpp new file mode 100644 index 0000000..15acbd7 --- /dev/null +++ b/include/gnuradio/element.hpp @@ -0,0 +1,42 @@ +// +// 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 io_sig program. If not, see <http://www.gnu.org/licenses/>. + +#ifndef INCLUDED_GNURADIO_ELEMENT_HPP +#define INCLUDED_GNURADIO_ELEMENT_HPP + +#include <gnuradio/runtime_api.h> +#include <gruel/pmt.h> + +namespace gnuradio +{ + +struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> +{ + + //! Create an empty element + Element(void); + + /*! + * Create an element from a shared pointer to an element. + * Good for that factory function/shared ptr paradigm. + */ + Element(const boost::shared_ptr<Element> &elem); + +}; + +} //namespace gnuradio + +#endif /*INCLUDED_GNURADIO_ELEMENT_HPP*/ |