blob: fdb45db01655ec9ff445f515689565d5b1f7e5fe [file] [log] [blame]
akmhoqueba094742014-02-28 11:47:21 -06001#ifndef NLSR_DM_HPP
2#define NLSR_DM_HPP
3
4#include <ndn-cpp-dev/face.hpp>
5#include <ndn-cpp-dev/security/key-chain.hpp>
6#include <ndn-cpp-dev/util/scheduler.hpp>
7
8#include "nlsr_im.hpp"
9
10namespace nlsr
11{
12
13 using namespace ndn;
14 using namespace std;
15
16 class Nlsr;
17
18 class DataManager
19 {
20 public:
21 void processContent(Nlsr& pnlsr, const ndn::Interest &interest,
22 const ndn::Data& data, interestManager& im);
23 private:
24 void processContentInfo(Nlsr& pnlsr, string& dataName,
25 string& dataContent);
26 void processContentLsa(Nlsr& pnlsr, string& dataName,
27 string& dataContent);
28 void processContentNameLsa(Nlsr& pnlsr, string lsaKey,
29 uint32_t lsSeqNo, string& dataContent);
30 void processContentAdjLsa(Nlsr& pnlsr, string lsaKey,
31 uint32_t lsSeqNo, string& dataContent);
32 void processContentCorLsa(Nlsr& pnlsr, string lsaKey,
33 uint32_t lsSeqNo, string& dataContent);
34 void processContentKeys(Nlsr& pnlsr, const ndn::Data& data);
35
36
37 };
38
39}//namespace nlsr
40#endif