Adding and finishing test for adding remotely fetched actions
diff --git a/ccnx/ccnx-name.h b/ccnx/ccnx-name.h
index 72f790a..b32c419 100644
--- a/ccnx/ccnx-name.h
+++ b/ccnx/ccnx-name.h
@@ -137,6 +137,9 @@
Name
getPartialName(int start, int n = -1) const;
+ inline Name
+ getPartialNameFromBack(int start, int n = -1) const;
+
std::string
toString() const;
@@ -181,6 +184,12 @@
return getCompAsInt (m_comps.size () - 1 - index);
}
+Name
+Name::getPartialNameFromBack(int start, int n/* = -1*/) const
+{
+ return getPartialName (m_comps.size () - 1 - start, n);
+}
+
} // Ccnx
#endif