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 MetaInfoLitedownCast (ndn_MetaInfo &metaInfo)
 Downcast the reference to the ndn_MetaInfo struct to a MetaInfoLite. More...
 
static const MetaInfoLitedownCast (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

static MetaInfoLite& ndn::MetaInfoLite::downCast ( ndn_MetaInfo metaInfo)
inlinestatic

Downcast the reference to the ndn_MetaInfo struct to a MetaInfoLite.

Parameters
metaInfoA reference to the ndn_MetaInfo struct.
Returns
The same reference as MetaInfoLite.
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.

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