Changing API from ndn.cxx to ndn-cpp
diff --git a/src/specific-policy-rule.h b/src/specific-policy-rule.h
index e2b859b..429eff7 100644
--- a/src/specific-policy-rule.h
+++ b/src/specific-policy-rule.h
@@ -11,15 +11,15 @@
#ifndef SPECIFIC_POLICY_RULE_H
#define SPECIFIC_POLICY_RULE_H
-#include <ndn.cxx/security/policy/policy-rule.h>
-#include <ndn.cxx/regex/regex.h>
+#include <ndn-cpp-et/policy-manager/policy-rule.hpp>
+#include <ndn-cpp-et/regex/regex.hpp>
-class SpecificPolicyRule : public ndn::security::PolicyRule
+class SpecificPolicyRule : public ndn::PolicyRule
{
public:
- SpecificPolicyRule(ndn::Ptr<ndn::Regex> dataRegex,
- ndn::Ptr<ndn::Regex> signerRegex);
+ SpecificPolicyRule(ndn::ptr_lib::shared_ptr<ndn::Regex> dataRegex,
+ ndn::ptr_lib::shared_ptr<ndn::Regex> signerRegex);
SpecificPolicyRule(const SpecificPolicyRule& rule);
@@ -27,20 +27,20 @@
~SpecificPolicyRule() {};
bool
- matchDataName(const ndn::Data & data);
+ matchDataName(const ndn::Data& data);
bool
- matchSignerName(const ndn::Data & data);
+ matchSignerName(const ndn::Data& data);
bool
- satisfy(const ndn::Data & data);
+ satisfy(const ndn::Data& data);
bool
- satisfy(const ndn::Name & dataName, const ndn::Name & signerName);
+ satisfy(const ndn::Name& dataName, const ndn::Name& signerName);
private:
- ndn::Ptr<ndn::Regex> m_dataRegex;
- ndn::Ptr<ndn::Regex> m_signerRegex;
+ ndn::ptr_lib::shared_ptr<ndn::Regex> m_dataRegex;
+ ndn::ptr_lib::shared_ptr<ndn::Regex> m_signerRegex;
};
#endif //CHAT_POLICY_RULE_H