blob: dd1bafa613ae188e9a2f239d733e994990fdf7b3 [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
akmhoque5a44dd42014-03-12 18:11:32 -050011 using namespace std;
akmhoque298385a2014-02-13 14:13:09 -060012
akmhoque5a44dd42014-03-12 18:11:32 -050013 class Npl
14 {
15
16 public:
17 Npl();
18 ~Npl();
19
20 int insertIntoNpl(string& name);
21 int removeFromNpl(string& name);
22 void sortNpl();
23 int getNplSize()
akmhoque1fd8c1e2014-02-19 19:41:49 -060024 {
akmhoque5a44dd42014-03-12 18:11:32 -050025 return nameList.size();
26 }
27 std::list<string>& getNameList()
28 {
29 return nameList;
30 }
31 void printNpl();
akmhoque298385a2014-02-13 14:13:09 -060032
akmhoque5a44dd42014-03-12 18:11:32 -050033 private:
34 std::list<string> nameList;
akmhoque298385a2014-02-13 14:13:09 -060035
akmhoque5a44dd42014-03-12 18:11:32 -050036 };
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