blob: d7e89ce2fd48ac5985134a47adfccf29b0586ee1 [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef NLSR_WL_HPP
2#define NLSR_WL_HPP
3
4#include "waiting-list-entry.hpp"
5
6namespace nlsr {
7class WaitingList
8{
9public:
10 WaitingList()
11 : m_waitingTable()
12 {}
13
14 std::list<WaitingListEntry>&
15 getWaitingTable()
16 {
17 return m_waitingTable;
18 }
19
20 bool
21 add(std::string respCert, std::string waitee);
22
23 std::pair<WaitingListEntry, bool>
24 getWaitingListEntry(std::string respCert);
25
26 bool
27 remove(std::string respCert);
28
29private:
30 std::list<WaitingListEntry> m_waitingTable;
31};
32
33std::ostream&
34operator<<(std::ostream& os, WaitingList wl);
35
36}//namespace nlsr
37
38#endif //NLSR_WL_HPP