Public Member Functions | Static Public Member Functions | List of all members
ndn::MetaInfoLite Class Reference

A MetaInfoLite holds a type and other info to represent the meta info of a Data packet. More...

#include <meta-info-lite.hpp>

Inheritance diagram for ndn::MetaInfoLite:
ndn_MetaInfo

Public Member Functions

 MetaInfoLite ()
 Create a MetaInfoLite with default field values.
 
ndn_ContentType getType () const
 
Milliseconds getFreshnessPeriod () const
 
const NameLite::Component getFinalBlockId () const
 
void setType (ndn_ContentType type)
 
void setFreshnessPeriod (Milliseconds freshnessPeriod)
 
void setFinalBlockId (const NameLite::Component &finalBlockId)
 Set the final block ID. More...
 

Static Public Member Functions

static MetaInfoLiteupCast (ndn_MetaInfo &metaInfo)
 Upcast the reference to the ndn_MetaInfo struct to a MetaInfoLite. More...
 
static const MetaInfoLiteupCast (const ndn_MetaInfo &metaInfo)
 

Detailed Description

A MetaInfoLite holds a type and other info to represent the meta info of a Data packet.

Member Function Documentation

void ndn::MetaInfoLite::setFinalBlockId ( const NameLite::Component finalBlockId)
inline

Set the final block ID.

Parameters
finalBlockIdThe final block ID. This takes the pointer but does not copy the bytes of the name component.
static MetaInfoLite& ndn::MetaInfoLite::upCast ( ndn_MetaInfo metaInfo)
inlinestatic

Upcast the reference to the ndn_MetaInfo struct to a MetaInfoLite.

Parameters
metaInfoA reference to the ndn_MetaInfo struct.
Returns
The same reference as MetaInfoLite.

The documentation for this class was generated from the following files: