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 | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 8 | namespace nlsr |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 9 | { |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 10 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 11 | using namespace std; |
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 12 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 13 | class SequencingManager |
14 | { | ||||
15 | public: | ||||
16 | SequencingManager() | ||||
17 | : nameLsaSeq(0) | ||||
18 | , adjLsaSeq(0) | ||||
19 | , corLsaSeq(0) | ||||
20 | { | ||||
21 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 22 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 23 | SequencingManager(uint32_t nlsn, uint32_t alsn, uint32_t clsn) |
24 | { | ||||
25 | nameLsaSeq=nlsn; | ||||
26 | adjLsaSeq=alsn; | ||||
27 | corLsaSeq=clsn; | ||||
28 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 29 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 30 | uint32_t getNameLsaSeq() |
31 | { | ||||
32 | return nameLsaSeq; | ||||
33 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 34 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 35 | void setNameLsaSeq(uint32_t nlsn) |
36 | { | ||||
37 | nameLsaSeq=nlsn; | ||||
38 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 39 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 40 | uint32_t getAdjLsaSeq() |
41 | { | ||||
42 | return adjLsaSeq; | ||||
43 | } | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 44 | |
akmhoque | 1fd8c1e | 2014-02-19 19:41:49 -0600 | [diff] [blame^] | 45 | 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 | }; | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 65 | |
akmhoque | b1710aa | 2014-02-19 17:13:36 -0600 | [diff] [blame] | 66 | |
67 | }//namespace nlsr | ||||
akmhoque | 298385a | 2014-02-13 14:13:09 -0600 | [diff] [blame] | 68 | #endif |