blob: 542203b2fb81207d21bb85b45c829420e0d8625a [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
8
9using namespace std;
10
11class SequencingManager
12{
13public:
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
55private:
56 uint32_t nameLsaSeq;
57 uint32_t adjLsaSeq;
58 uint32_t corLsaSeq;
59};
60
61#endif