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 | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 8 | namespace nlsr { |
| 9 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 10 | using namespace std; |
| 11 | |
| 12 | class Npl{ |
| 13 | |
| 14 | public: |
| 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 | |
| 31 | private: |
| 32 | std::list<string> nameList; |
| 33 | |
| 34 | }; |
| 35 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame^] | 36 | }//namespace nlsr |
| 37 | |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 38 | #endif |