data: Implementing FinalBlockId in Data packet's MetaInfo section
Change-Id: I4768aa0d7465f498b220910269db5e2aa69bbe51
diff --git a/src/data.hpp b/src/data.hpp
index d6aba80..f1b64a3 100644
--- a/src/data.hpp
+++ b/src/data.hpp
@@ -92,6 +92,12 @@
inline void
setFreshnessPeriod(Milliseconds freshnessPeriod);
+
+ inline const name::Component&
+ getFinalBlockId() const;
+
+ inline void
+ setFinalBlockId(const name::Component& finalBlockId);
/**
* @brief Get content Block
@@ -222,6 +228,19 @@
metaInfo_.setFreshnessPeriod(freshnessPeriod);
}
+inline const name::Component&
+Data::getFinalBlockId() const
+{
+ return metaInfo_.getFinalBlockId();
+}
+
+inline void
+Data::setFinalBlockId(const name::Component& finalBlockId)
+{
+ onChanged();
+ metaInfo_.setFinalBlockId(finalBlockId);
+}
+
inline const Block&
Data::getContent() const
{