akmhoque | 5335346 | 2014-04-22 08:43:45 -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 | class WaitingListEntry |
| 9 | { |
| 10 | public: |
| 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 | |
| 42 | private: |
| 43 | std::string m_responsibleCert; |
| 44 | std::list<std::string> m_waitingCerts; |
| 45 | }; |
| 46 | |
| 47 | std::ostream& |
| 48 | operator<<(std::ostream& os, const WaitingListEntry& we); |
| 49 | } //end name space |
| 50 | |
| 51 | #endif //NLSR_WLE_HPP |