Adding sequence number tracer
diff --git a/model/ccnx-name-components.cc b/model/ccnx-name-components.cc
index fd0064f..77ac75c 100644
--- a/model/ccnx-name-components.cc
+++ b/model/ccnx-name-components.cc
@@ -55,6 +55,17 @@
return m_prefix;
}
+std::string
+CcnxNameComponents::GetLastComponent () const
+{
+ if (m_prefix.size () == 0)
+ {
+ return "";
+ }
+
+ return m_prefix.back ();
+}
+
std::list<boost::reference_wrapper<const std::string> >
CcnxNameComponents::GetSubComponents (size_t num) const
{