diff options
author | Josh Blum | 2012-09-29 10:30:52 -0700 |
---|---|---|
committer | Josh Blum | 2012-09-29 10:30:52 -0700 |
commit | f3194e33de2a6496ce9ea838681e62b64fa689f4 (patch) | |
tree | 37b80081a4978826b6bf56603ed0bd35520e4af4 /lib/element.cpp | |
parent | 17e39ddbb0940d9d5e687713531e9a18d18e29f1 (diff) | |
download | sandhi-f3194e33de2a6496ce9ea838681e62b64fa689f4.tar.gz sandhi-f3194e33de2a6496ce9ea838681e62b64fa689f4.tar.bz2 sandhi-f3194e33de2a6496ce9ea838681e62b64fa689f4.zip |
ported block task and tag handlers to apology
Diffstat (limited to 'lib/element.cpp')
-rw-r--r-- | lib/element.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/element.cpp b/lib/element.cpp index b416261..a733d31 100644 --- a/lib/element.cpp +++ b/lib/element.cpp @@ -16,6 +16,7 @@ #include "element_impl.hpp" #include <gnuradio/element.hpp> +#include <boost/format.hpp> #include <boost/detail/atomic_count.hpp> static boost::detail::atomic_count unique_id_pool(0); @@ -63,6 +64,10 @@ std::string Element::name(void) const return (*this)->name; } +std::string Element::to_string(void) const +{ + return str(boost::format("%s(%d)") % this->name() % this->unique_id()); +} void Element::set_output_signature(const IOSignature &sig) { |