blob: 47bb8f52a73d48d1ba386cfa7be7198659a060a9 [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NPL_HPP
2#define NPL_HPP
3
4#include<list>
5#include<string>
6#include <ndn-cpp-dev/face.hpp>
7
akmhoqueb1710aa2014-02-19 17:13:36 -06008namespace nlsr {
9
akmhoque298385a2014-02-13 14:13:09 -060010using namespace std;
11
12class Npl{
13
14public:
15 Npl();
16 ~Npl();
17
18 int insertIntoNpl(string& name);
19 int removeFromNpl(string& name);
20 void sortNpl();
21 int getNplSize()
22 {
23 return nameList.size();
24 }
25 std::list<string>& getNameList()
26 {
27 return nameList;
28 }
29 void printNpl();
30
31private:
32 std::list<string> nameList;
33
34};
35
akmhoqueb1710aa2014-02-19 17:13:36 -060036}//namespace nlsr
37
akmhoque298385a2014-02-13 14:13:09 -060038#endif