src: Replace Tokenizer with the methods of ndn::Name
Purpose of this commit is to replace Tokenizer in all
places except conf-file-processor.*pp with the methods
of ndn::Name. One static method in class NameHelper
is added. Tokenizer will be removed finally when
configuration file parsing commit is complete.
Refs: 1533
Change-Id: I14a67655eb963c5cc5b045c3c9f7d516e405ff19
diff --git a/src/route/name-prefix-table-entry.hpp b/src/route/name-prefix-table-entry.hpp
index 0ee28fa..ab507d7 100644
--- a/src/route/name-prefix-table-entry.hpp
+++ b/src/route/name-prefix-table-entry.hpp
@@ -16,13 +16,13 @@
{
}
- NamePrefixTableEntry(const std::string& namePrefix)
- : m_nexthopList()
+ NamePrefixTableEntry(const ndn::Name& namePrefix)
+ : m_namePrefix(namePrefix)
+ , m_nexthopList()
{
- m_namePrefix = namePrefix;
}
- const std::string&
+ const ndn::Name&
getNamePrefix() const
{
return m_namePrefix;
@@ -69,7 +69,7 @@
addRoutingTableEntry(RoutingTableEntry& rte);
private:
- std::string m_namePrefix;
+ ndn::Name m_namePrefix;
std::list<RoutingTableEntry> m_rteList;
NexthopList m_nexthopList;
};