management: add CachingPolicy to LocalControlHeader
Breaks: NFD:commit:9cfeecaa2ffad1a1be79aed2321dcc7d042ecc5f
Breaks: ndnSIM:commit:ffe2586cfc466935c0632a5a64384f0fda709086
Change-Id: Idcce2b7ee9be31b55f9ec16c17e915d93974bff4
Refs: #2183
diff --git a/src/data.hpp b/src/data.hpp
index 2f56dfc..078938a 100644
--- a/src/data.hpp
+++ b/src/data.hpp
@@ -297,6 +297,12 @@
Data&
setIncomingFaceId(uint64_t incomingFaceId);
+ nfd::LocalControlHeader::CachingPolicy
+ getCachingPolicy() const;
+
+ Data&
+ setCachingPolicy(nfd::LocalControlHeader::CachingPolicy cachingPolicy);
+
public: // EqualityComparable concept
bool
operator==(const Data& other) const;
@@ -387,6 +393,11 @@
return getLocalControlHeader().getIncomingFaceId();
}
+inline nfd::LocalControlHeader::CachingPolicy
+Data::getCachingPolicy() const
+{
+ return getLocalControlHeader().getCachingPolicy();
+}
} // namespace ndn