blob: 52ccbbd82013be67ee3316b353b97dc97e8bce9b [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
akmhoqueb1710aa2014-02-19 17:13:36 -06008namespace nlsr {
akmhoque298385a2014-02-13 14:13:09 -06009
10using namespace std;
11
12class SequencingManager
13{
14public:
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
56private:
57 uint32_t nameLsaSeq;
58 uint32_t adjLsaSeq;
59 uint32_t corLsaSeq;
60};
61
akmhoqueb1710aa2014-02-19 17:13:36 -060062
63}//namespace nlsr
akmhoque298385a2014-02-13 14:13:09 -060064#endif