Extending ccnx-name and fixing bug with toString
diff --git a/include/ccnx-name.h b/include/ccnx-name.h
index 5f5a5c0..a6b6228 100644
--- a/include/ccnx-name.h
+++ b/include/ccnx-name.h
@@ -85,6 +85,22 @@
Name &
appendComp(const string &compStr);
+ Name &
+ appendComp(const Name &name);
+
+ Name &
+ appendComp(const void *buf, size_t size);
+
+ /**
+ * Append int component
+ *
+ * Difference between this and appendComp call is that data is appended in network order
+ *
+ * Also, this function honors naming convention (%00 prefix is added)
+ */
+ Name &
+ appendComp(uint64_t number);
+
int
size() const {return m_comps.size();}
@@ -97,6 +113,9 @@
string
getCompAsString(int index) const;
+ uint64_t
+ getCompAsInt (int index) const;
+
Name
getPartialName(int start, int n = -1) const;