src: configuration file parsing
used boost::property_tree::info_parser for parsing nlsr's configuration file and
changed configuration command style to info command style. Removed tokenizer from
nlsr
Refs: #1542
Change-Id: If017ddd7eef5caa59b33940bfc27a71aa4de266b
diff --git a/src/name-prefix-list.cpp b/src/name-prefix-list.cpp
index c8d9285..f00d0d0 100644
--- a/src/name-prefix-list.cpp
+++ b/src/name-prefix-list.cpp
@@ -30,8 +30,7 @@
m_nameList.end(),
ndn::bind(&nameCompare, _1 ,
ndn::cref(name)));
- if (it != m_nameList.end())
- {
+ if (it != m_nameList.end()) {
return -1;
}
m_nameList.push_back(name);
@@ -45,8 +44,7 @@
m_nameList.end(),
ndn::bind(&nameCompare, _1 ,
ndn::cref(name)));
- if (it != m_nameList.end())
- {
+ if (it != m_nameList.end()) {
m_nameList.erase(it);
}
return -1;
@@ -63,9 +61,7 @@
{
int i = 1;
for (std::list<ndn::Name>::iterator it = m_nameList.begin();
- it != m_nameList.end();
- it++)
- {
+ it != m_nameList.end(); it++) {
cout << "Name " << i << " : " << (*it) << endl;
i++;
}