diff options
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 |