akmhoque | 87347a3 | 2014-01-31 11:00:44 -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 | |
| 8 | using namespace std; |
| 9 | |
| 10 | class Npl{ |
| 11 | |
| 12 | public: |
| 13 | Npl(); |
| 14 | ~Npl(); |
| 15 | |
| 16 | int insertIntoNpl(string& name); |
akmhoque | 62a8e40 | 2014-02-08 12:00:27 -0600 | [diff] [blame] | 17 | int removeFromNpl(string& name); |
| 18 | void sortNpl(); |
akmhoque | fd1dd0a | 2014-02-01 01:11:35 -0600 | [diff] [blame] | 19 | int getNplSize() |
| 20 | { |
| 21 | return nameList.size(); |
| 22 | } |
| 23 | std::list<string>& getNameList() |
| 24 | { |
| 25 | return nameList; |
| 26 | } |
akmhoque | 87347a3 | 2014-01-31 11:00:44 -0600 | [diff] [blame] | 27 | void printNpl(); |
| 28 | |
| 29 | private: |
| 30 | std::list<string> nameList; |
| 31 | |
| 32 | }; |
| 33 | |
| 34 | #endif |