represents a PrefixAnnouncement header field in NDNLP More...
#include <prefix-announcement-header.hpp>
Classes | |
class | Error |
Public Member Functions | |
PrefixAnnouncementHeader () | |
PrefixAnnouncementHeader (const Block &block) | |
PrefixAnnouncementHeader (PrefixAnnouncement prefixAnn) | |
constructs PrefixAnnouncementHeader using PrefixAnnouncement More... | |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
encodes the prefix announcement header to the wire format More... | |
void | wireDecode (const Block &wire) |
const optional< PrefixAnnouncement > & | getPrefixAnn () const |
represents a PrefixAnnouncement header field in NDNLP
Definition at line 32 of file prefix-announcement-header.hpp.
|
default |
|
explicit |
Definition at line 30 of file prefix-announcement-header.cpp.
References wireDecode().
|
explicit |
constructs PrefixAnnouncementHeader using PrefixAnnouncement
Error | PrefixAnnouncement does not contain Data. |
Definition at line 35 of file prefix-announcement-header.cpp.
References NDN_THROW, and nonstd::optional_lite::nullopt.
size_t ndn::lp::PrefixAnnouncementHeader::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
encodes the prefix announcement header to the wire format
Error | this instance does not contain a PrefixAnnouncement. |
Definition at line 45 of file prefix-announcement-header.cpp.
References NDN_THROW, nonstd::optional_lite::nullopt, and ndn::lp::tlv::PrefixAnnouncement.
void ndn::lp::PrefixAnnouncementHeader::wireDecode | ( | const Block & | wire | ) |
Definition at line 61 of file prefix-announcement-header.cpp.
References ndn::tlv::Data, ndn::Block::get(), NDN_THROW, ndn::Block::parse(), ndn::lp::tlv::PrefixAnnouncement, and ndn::Block::type().
Referenced by PrefixAnnouncementHeader().
|
inline |
Definition at line 65 of file prefix-announcement-header.hpp.