blob: 66b0a955805c028df03518501e38140f784cc846 [file] [log] [blame]
akmhoque53353462014-04-22 08:43:45 -05001#ifndef NLSR_WLE_HPP
2#define NLSR_WLE_HPP
3
4#include <list>
5#include <iostream>
6
7namespace nlsr {
8class WaitingListEntry
9{
10public:
11 WaitingListEntry()
12 : m_responsibleCert()
13 , m_waitingCerts()
14 {}
15
16 WaitingListEntry(std::string resCert)
17 : m_responsibleCert(resCert)
18 , m_waitingCerts()
19 {}
20
21 std::string
22 getResponsibleCert() const
23 {
24 return m_responsibleCert;
25 }
26
27 void
28 setResponsibleCert(std::string resCert)
29 {
30 m_responsibleCert = resCert;
31 }
32
33 std::list<std::string>
34 getWaitingCerts() const
35 {
36 return m_waitingCerts;
37 }
38
39 bool
40 addWaitee(std::string waiteeName);
41
42private:
43 std::string m_responsibleCert;
44 std::list<std::string> m_waitingCerts;
45};
46
47std::ostream&
48operator<<(std::ostream& os, const WaitingListEntry& we);
49} //end name space
50
51#endif //NLSR_WLE_HPP