26 #include <boost/foreach.hpp> 
   28 NS_LOG_COMPONENT_DEFINE (
"ndn.Data");
 
   34   : m_name (Create<
Name> ())
 
   42       m_payload = Create<Packet> ();
 
   47   : m_name (Create<
Name> (other.GetName ()))
 
   48   , m_freshness (other.GetFreshness ())
 
   49   , m_timestamp (other.GetTimestamp ())
 
   50   , m_signature (other.GetSignature ())
 
   51   , m_payload (other.GetPayload ()->Copy ())
 
   70   m_name = Create<Name> (name);
 
   91   m_timestamp = timestamp;
 
  104   m_freshness = freshness;
 
  118   m_signature = signature;
 
  131   m_keyLocator = keyLocator;
 
Data(Ptr< Packet > payload=Create< Packet >())
Constructor. 
 
void Print(std::ostream &os) const 
Print Interest in plain-text to the specified output stream. 
 
Ptr< const Name > GetNamePtr() const 
Get smart pointer to the interest name (to avoid extra memory usage) 
 
Ptr< const Name > GetKeyLocator() const 
Get key locator. 
 
void SetTimestamp(const Time ×tamp)
Set content object timestamp. 
 
const Name & GetName() const 
Get name of the content object. 
 
void SetKeyLocator(Ptr< Name > keyLocator)
Set key locator. 
 
void SetFreshness(const Time &freshness)
Set freshness of the content object. 
 
Time GetTimestamp() const 
Get timestamp of the content object. 
 
Class for Data parsing exception. 
 
void SetPayload(Ptr< Packet > payload)
Get payload of data packet. 
 
void SetName(Ptr< Name > name)
Set content object name. 
 
uint32_t GetSignature() const 
Get "fake" signature of the content object. 
 
Time GetFreshness() const 
Get freshness of the content object. 
 
void SetSignature(uint32_t signature)
Set "fake" signature on the content object. 
 
Ptr< const Packet > GetPayload() const 
Set payload of data packet.