akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame^] | 1 | #ifndef NLSR_SM_HPP |
| 2 | #define NLSR_SM_HPP |
| 3 | |
| 4 | #include<list> |
| 5 | #include<string> |
| 6 | #include <ndn-cpp-dev/face.hpp> |
| 7 | |
| 8 | |
| 9 | using namespace std; |
| 10 | |
| 11 | class SequencingManager |
| 12 | { |
| 13 | public: |
| 14 | SequencingManager() |
| 15 | : nameLsaSeq(0) |
| 16 | , adjLsaSeq(0) |
| 17 | , corLsaSeq(0) |
| 18 | { |
| 19 | } |
| 20 | |
| 21 | SequencingManager(uint32_t nlsn, uint32_t alsn, uint32_t clsn) |
| 22 | { |
| 23 | nameLsaSeq=nlsn; |
| 24 | adjLsaSeq=alsn; |
| 25 | corLsaSeq=clsn; |
| 26 | } |
| 27 | |
| 28 | uint32_t getNameLsaSeq() |
| 29 | { |
| 30 | return nameLsaSeq; |
| 31 | } |
| 32 | |
| 33 | void setNameLsaSeq(uint32_t nlsn){ |
| 34 | nameLsaSeq=nlsn; |
| 35 | } |
| 36 | |
| 37 | uint32_t getAdjLsaSeq() |
| 38 | { |
| 39 | return adjLsaSeq; |
| 40 | } |
| 41 | |
| 42 | void setAdjLsaSeq(uint32_t alsn){ |
| 43 | adjLsaSeq=alsn; |
| 44 | } |
| 45 | |
| 46 | uint32_t getCorLsaSeq() |
| 47 | { |
| 48 | return corLsaSeq; |
| 49 | } |
| 50 | |
| 51 | void setCorLsaSeq(uint32_t clsn){ |
| 52 | corLsaSeq=clsn; |
| 53 | } |
| 54 | |
| 55 | private: |
| 56 | uint32_t nameLsaSeq; |
| 57 | uint32_t adjLsaSeq; |
| 58 | uint32_t corLsaSeq; |
| 59 | }; |
| 60 | |
| 61 | #endif |