akmhoque | fa8ee9b | 2014-03-14 09:06:24 -0500 | [diff] [blame] | 1 | #ifndef NLSR_WLE_HPP |
| 2 | #define NLSR_WLE_HPP |
| 3 | |
| 4 | #include <list> |
| 5 | #include <iostream> |
| 6 | |
| 7 | namespace nlsr |
| 8 | { |
| 9 | class WaitingListEntry |
| 10 | { |
| 11 | public: |
| 12 | WaitingListEntry() |
| 13 | : responsibleCert() |
| 14 | , waitingCerts() |
| 15 | {} |
| 16 | |
| 17 | WaitingListEntry(std::string resCert) |
| 18 | : responsibleCert(resCert) |
| 19 | , waitingCerts() |
| 20 | {} |
| 21 | |
| 22 | std::string getResponsibleCert() const |
| 23 | { |
| 24 | return responsibleCert; |
| 25 | } |
| 26 | |
| 27 | void setResponsibleCert(std::string resCert) |
| 28 | { |
| 29 | responsibleCert=resCert; |
| 30 | } |
| 31 | |
| 32 | std::list<std::string> getWaitingCerts() const |
| 33 | { |
| 34 | return waitingCerts; |
| 35 | } |
| 36 | |
| 37 | bool addWaitee(std::string waiteeName); |
| 38 | |
| 39 | private: |
| 40 | std::string responsibleCert; |
| 41 | std::list<std::string> waitingCerts; |
| 42 | }; |
| 43 | |
| 44 | std::ostream& operator<<(std::ostream& os, const WaitingListEntry& we); |
| 45 | } //end name space |
| 46 | |
| 47 | #endif |