36 : m_prefixAnn(
std::move(prefixAnn))
38 if (m_prefixAnn->getData() ==
nullopt) {
39 BOOST_THROW_EXCEPTION(
Error(
"PrefixAnnouncement does not contain Data"));
43 template<encoding::Tag TAG>
48 BOOST_THROW_EXCEPTION(
Error(
"PrefixAnnouncementHeader does not contain a PrefixAnnouncement"));
52 length += m_prefixAnn->getData()->wireEncode(encoder);
53 length += encoder.prependVarNumber(length);
Represents a TLV element of NDN packet format.
A prefix announcement object that represents an application's intent of registering a prefix toward i...
const Block & get(uint32_t type) const
Get the first sub element of specified TLV-TYPE.
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
void parse() const
Parse TLV-VALUE into sub elements.
uint32_t type() const
Get TLV-TYPE.
std::string to_string(const V &v)
const nullopt_t nullopt((nullopt_t::init()))