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() | ||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 12 | : m_waitingTable() |
akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 13 | {} |
14 | |||||
15 | std::list<WaitingListEntry>& getWaitingTable() | ||||
16 | { | ||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 17 | return m_waitingTable; |
akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 18 | } |
19 | |||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 20 | bool add(std::string respCert, std::string waitee); |
akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 21 | std::pair<WaitingListEntry, bool> getWaitingListEntry(std::string respCert); |
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 22 | bool remove(std::string respCert); |
akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 23 | |
24 | private: | ||||
akmhoque | 05d5fcf | 2014-04-15 14:58:45 -0500 | [diff] [blame^] | 25 | std::list<WaitingListEntry> m_waitingTable; |
akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 26 | }; |
27 | |||||
28 | std::ostream& operator<<(std::ostream& os, WaitingList wl); | ||||
29 | } | ||||
30 | |||||
31 | #endif |