base: Interest and Data packets can now be tagged with arbitrary information
This functionality is similar to StrategyInfoHost and StrategyInfo in
NFD. Current usage will include ndnSIM, where Interest and Data ndn-cxx
packets need to be associated with ns3::Packet data structures.
Change-Id: I313e4be0f4b6eac80f3824e3fd725968e265fdce
Refs: #2336
diff --git a/src/data.hpp b/src/data.hpp
index fec8658..3cccc16 100644
--- a/src/data.hpp
+++ b/src/data.hpp
@@ -30,12 +30,13 @@
#include "meta-info.hpp"
#include "key-locator.hpp"
#include "management/nfd-local-control-header.hpp"
+#include "tag-host.hpp"
namespace ndn {
/** @brief represents a Data packet
*/
-class Data : public enable_shared_from_this<Data>
+class Data : public TagHost, public enable_shared_from_this<Data>
{
public:
class Error : public tlv::Error