blob: 3fc3db9469e1db1880cf8014ba5bdace369b8f6a [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
akmhoque1fd8c1e2014-02-19 19:41:49 -06008namespace nlsr
9{
akmhoqueb1710aa2014-02-19 17:13:36 -060010
akmhoque1fd8c1e2014-02-19 19:41:49 -060011 using namespace std;
akmhoque298385a2014-02-13 14:13:09 -060012
akmhoque1fd8c1e2014-02-19 19:41:49 -060013 class Npl
14 {
akmhoque298385a2014-02-13 14:13:09 -060015
akmhoque1fd8c1e2014-02-19 19:41:49 -060016 public:
17 Npl();
18 ~Npl();
akmhoque298385a2014-02-13 14:13:09 -060019
akmhoque1fd8c1e2014-02-19 19:41:49 -060020 int insertIntoNpl(string& name);
21 int removeFromNpl(string& name);
22 void sortNpl();
23 int getNplSize()
24 {
25 return nameList.size();
26 }
27 std::list<string>& getNameList()
28 {
29 return nameList;
30 }
31 void printNpl();
akmhoque298385a2014-02-13 14:13:09 -060032
akmhoque1fd8c1e2014-02-19 19:41:49 -060033 private:
34 std::list<string> nameList;
35
36 };
akmhoque298385a2014-02-13 14:13:09 -060037
akmhoqueb1710aa2014-02-19 17:13:36 -060038}//namespace nlsr
39
akmhoque298385a2014-02-13 14:13:09 -060040#endif