akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame^] | 1 | #ifndef NLSR_WL_HPP |
| 2 | #define NLSR_WL_HPP |
| 3 | |
| 4 | #include "nlsr_wle.hpp" |
| 5 | |
| 6 | namespace nlsr |
| 7 | { |
| 8 | class WaitingList |
| 9 | { |
| 10 | public: |
| 11 | WaitingList() |
| 12 | : waitingTable() |
| 13 | {} |
| 14 | |
| 15 | std::list<WaitingListEntry>& getWaitingTable() |
| 16 | { |
| 17 | return waitingTable; |
| 18 | } |
| 19 | |
| 20 | bool addtoWaitingList(std::string respCert, std::string waitee); |
| 21 | std::pair<WaitingListEntry, bool> getWaitingListEntry(std::string respCert); |
| 22 | bool removeFromWaitingList(std::string respCert); |
| 23 | |
| 24 | private: |
| 25 | std::list<WaitingListEntry> waitingTable; |
| 26 | }; |
| 27 | |
| 28 | std::ostream& operator<<(std::ostream& os, WaitingList wl); |
| 29 | } |
| 30 | |
| 31 | #endif |