ndn::lp::PrefixAnnouncementHeader Class Reference

represents a PrefixAnnouncement header field in NDNLP More...

#include <ndn-cxx/lp/prefix-announcement-header.hpp>

Classes

class  Error
 

Public Member Functions

 PrefixAnnouncementHeader ()
 
 PrefixAnnouncementHeader (const Block &block)
 
 PrefixAnnouncementHeader (PrefixAnnouncement prefixAnn)
 constructs PrefixAnnouncementHeader using PrefixAnnouncement More...
 
const optional< PrefixAnnouncement > & getPrefixAnn () const
 
void wireDecode (const Block &wire)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 encodes the prefix announcement header to the wire format More...
 

Detailed Description

represents a PrefixAnnouncement header field in NDNLP

Definition at line 32 of file prefix-announcement-header.hpp.

Constructor & Destructor Documentation

ndn::lp::PrefixAnnouncementHeader::PrefixAnnouncementHeader ( )
default
ndn::lp::PrefixAnnouncementHeader::PrefixAnnouncementHeader ( const Block block)
explicit

Definition at line 30 of file prefix-announcement-header.cpp.

ndn::lp::PrefixAnnouncementHeader::PrefixAnnouncementHeader ( PrefixAnnouncement  prefixAnn)
explicit

constructs PrefixAnnouncementHeader using PrefixAnnouncement

Exceptions
ErrorPrefixAnnouncement does not contain Data.

Definition at line 35 of file prefix-announcement-header.cpp.

Member Function Documentation

const optional<PrefixAnnouncement>& ndn::lp::PrefixAnnouncementHeader::getPrefixAnn ( ) const
inline

Definition at line 65 of file prefix-announcement-header.hpp.

void ndn::lp::PrefixAnnouncementHeader::wireDecode ( const Block wire)

Definition at line 61 of file prefix-announcement-header.cpp.

template<encoding::Tag TAG>
size_t ndn::lp::PrefixAnnouncementHeader::wireEncode ( EncodingImpl< TAG > &  encoder) const

encodes the prefix announcement header to the wire format

Exceptions
Errorthis instance does not contain a PrefixAnnouncement.

Definition at line 45 of file prefix-announcement-header.cpp.