File name format change and Removed warning messages (Except warning from boost for Logging)
Change-Id: If3a3a5411d377d925527fc3e8809c228a9a81e26
diff --git a/src/route/npte.hpp b/src/route/npte.hpp
new file mode 100644
index 0000000..57fdfec
--- /dev/null
+++ b/src/route/npte.hpp
@@ -0,0 +1,84 @@
+#ifndef NLSR_NPTE_HPP
+#define NLSR_NPTE_HPP
+
+#include <list>
+#include <utility>
+#include "routing-table-entry.hpp"
+
+namespace nlsr {
+
+using namespace std;
+
+class Npte
+{
+public:
+ Npte()
+ : m_namePrefix()
+ , m_nhl()
+ {
+ }
+
+ Npte(string np)
+ : m_nhl()
+ {
+ m_namePrefix = np;
+ }
+
+ std::string
+ getNamePrefix()
+ {
+ return m_namePrefix;
+ }
+
+ std::list<RoutingTableEntry>&
+ getRteList()
+ {
+ return m_rteList;
+ }
+
+ void
+ resetRteListNextHop()
+ {
+ if (m_rteList.size() > 0)
+ {
+ for (std::list<RoutingTableEntry>::iterator it = m_rteList.begin();
+ it != m_rteList.end(); ++it)
+ {
+ (*it).getNhl().reset();
+ }
+ }
+ }
+
+ int
+ getRteListSize()
+ {
+ return m_rteList.size();
+ }
+
+ Nhl&
+ getNhl()
+ {
+ return m_nhl;
+ }
+
+ void
+ generateNhlfromRteList();
+
+ void
+ removeRoutingTableEntry(RoutingTableEntry& rte);
+
+ void
+ addRoutingTableEntry(RoutingTableEntry& rte);
+
+private:
+ std::string m_namePrefix;
+ std::list<RoutingTableEntry> m_rteList;
+ Nhl m_nhl;
+};
+
+std::ostream&
+operator<<(std::ostream& os, Npte& npte);
+
+}//namespace nlsr
+
+#endif //NLSR_NPTE_HPP