diff options
author | Josh Blum | 2012-08-19 14:27:11 -0700 |
---|---|---|
committer | Josh Blum | 2012-08-26 16:03:51 -0700 |
commit | fa25d15ed1a7b85869229055ef32166ef1d8bef2 (patch) | |
tree | 0f39ab553dce30e9c8c11ab20f820d5753d5bf47 /include/gnuradio/element.hpp | |
parent | 87be8242fd5855a8e8f6a76fddf40275b711c784 (diff) | |
download | sandhi-fa25d15ed1a7b85869229055ef32166ef1d8bef2.tar.gz sandhi-fa25d15ed1a7b85869229055ef32166ef1d8bef2.tar.bz2 sandhi-fa25d15ed1a7b85869229055ef32166ef1d8bef2.zip |
runtime: work on unit tests
Diffstat (limited to 'include/gnuradio/element.hpp')
-rw-r--r-- | include/gnuradio/element.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/gnuradio/element.hpp b/include/gnuradio/element.hpp index dc153fe..849323a 100644 --- a/include/gnuradio/element.hpp +++ b/include/gnuradio/element.hpp @@ -19,6 +19,7 @@ #include <gnuradio/runtime_api.h> #include <gruel/pmt.h> +#include <gr_io_signature.h> namespace gnuradio { @@ -29,6 +30,8 @@ struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> //! Create an empty element Element(void); + Element(const std::string &name); + /*! * Create an element from a shared pointer to an element. * Good for that factory function/shared ptr paradigm. @@ -38,6 +41,18 @@ struct GR_RUNTIME_API Element : boost::shared_ptr<ElementImpl> boost::shared_ptr<ElementImpl>(*reinterpret_cast<const Element*>(elem.get())) { } + long unique_id(void) const; + + std::string name(void) const; + + void set_output_signature(gr_io_signature_sptr); + + void set_input_signature(gr_io_signature_sptr); + + gr_io_signature_sptr input_signature(void) const; + + gr_io_signature_sptr output_signature(void) const; + }; } //namespace gnuradio |