blob: 7dfe1b0ba41ad3da1aa57983533384a70406fa0d [file] [log] [blame]
akmhoque298385a2014-02-13 14:13:09 -06001#ifndef NLSR_SM_HPP
2#define NLSR_SM_HPP
3
4#include<list>
5#include<string>
6#include <ndn-cpp-dev/face.hpp>
7
akmhoque1fd8c1e2014-02-19 19:41:49 -06008namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -06009{
akmhoque298385a2014-02-13 14:13:09 -060010
akmhoque1fd8c1e2014-02-19 19:41:49 -060011 using namespace std;
akmhoque298385a2014-02-13 14:13:09 -060012
akmhoque1fd8c1e2014-02-19 19:41:49 -060013 class SequencingManager
14 {
15 public:
16 SequencingManager()
17 : nameLsaSeq(0)
18 , adjLsaSeq(0)
19 , corLsaSeq(0)
20 {
21 }
akmhoque298385a2014-02-13 14:13:09 -060022
akmhoque1fd8c1e2014-02-19 19:41:49 -060023 SequencingManager(uint32_t nlsn, uint32_t alsn, uint32_t clsn)
24 {
25 nameLsaSeq=nlsn;
26 adjLsaSeq=alsn;
27 corLsaSeq=clsn;
28 }
akmhoque298385a2014-02-13 14:13:09 -060029
akmhoque1fd8c1e2014-02-19 19:41:49 -060030 uint32_t getNameLsaSeq()
31 {
32 return nameLsaSeq;
33 }
akmhoque298385a2014-02-13 14:13:09 -060034
akmhoque1fd8c1e2014-02-19 19:41:49 -060035 void setNameLsaSeq(uint32_t nlsn)
36 {
37 nameLsaSeq=nlsn;
38 }
akmhoque298385a2014-02-13 14:13:09 -060039
akmhoque1fd8c1e2014-02-19 19:41:49 -060040 uint32_t getAdjLsaSeq()
41 {
42 return adjLsaSeq;
43 }
akmhoque298385a2014-02-13 14:13:09 -060044
akmhoque1fd8c1e2014-02-19 19:41:49 -060045 void setAdjLsaSeq(uint32_t alsn)
46 {
47 adjLsaSeq=alsn;
48 }
49
50 uint32_t getCorLsaSeq()
51 {
52 return corLsaSeq;
53 }
54
55 void setCorLsaSeq(uint32_t clsn)
56 {
57 corLsaSeq=clsn;
58 }
59
60 private:
61 uint32_t nameLsaSeq;
62 uint32_t adjLsaSeq;
63 uint32_t corLsaSeq;
64 };
akmhoque298385a2014-02-13 14:13:09 -060065
akmhoqueb1710aa2014-02-19 17:13:36 -060066
67}//namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -060068#endif