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