From f3194e33de2a6496ce9ea838681e62b64fa689f4 Mon Sep 17 00:00:00 2001 From: Josh Blum Date: Sat, 29 Sep 2012 10:30:52 -0700 Subject: ported block task and tag handlers to apology --- lib/element.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib/element.cpp') 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 +#include #include 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) { -- cgit