akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 1 | #ifndef NPL_HPP |
2 | #define NPL_HPP | ||||
3 | |||||
4 | #include<list> | ||||
5 | #include<string> | ||||
6 | #include <ndn-cpp-dev/face.hpp> | ||||
7 | |||||
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 8 | namespace nlsr |
9 | { | ||||
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 10 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 11 | using namespace std; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 12 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 13 | 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() | ||||
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame] | 24 | { |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 25 | return nameList.size(); |
26 | } | ||||
27 | std::list<string>& getNameList() | ||||
28 | { | ||||
29 | return nameList; | ||||
30 | } | ||||
31 | void printNpl(); | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 32 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 33 | private: |
34 | std::list<string> nameList; | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 35 | |
akmhoque | 5a44dd4 | 2014-03-12 18:11:32 -0500 | [diff] [blame] | 36 | }; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 37 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 38 | }//namespace nlsr |
39 | |||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 40 | #endif |