ndn::lp::PrefixAnnouncement Class Reference

represents a Prefix Announcement More...

#include <prefix-announcement.hpp>

Classes

class  Error
 

Public Member Functions

 PrefixAnnouncement ()
 
 PrefixAnnouncement (const Block &block)
 
 PrefixAnnouncement (shared_ptr< const Data > data)
 
Name getAnnouncedName () const
 Get announced name. More...
 
shared_ptr< const DatagetData () const
 
PrefixAnnouncementsetData (shared_ptr< const Data > data)
 
void wireDecode (const Block &wire)
 
template<encoding::Tag TAG>
size_t wireEncode (EncodingImpl< TAG > &encoder) const
 

Detailed Description

represents a Prefix Announcement

This type wraps a Data, and is intended for self-learning. The Name of Data starts with /self-learning prefix, ends with a version component, and the components in the middle refer to the announced name prefix. The MetaInfo and Content of the Data must be empty.

Definition at line 40 of file prefix-announcement.hpp.

Constructor & Destructor Documentation

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

Definition at line 34 of file prefix-announcement.cpp.

ndn::lp::PrefixAnnouncement::PrefixAnnouncement ( shared_ptr< const Data data)
explicit

Definition at line 39 of file prefix-announcement.cpp.

Member Function Documentation

Name ndn::lp::PrefixAnnouncement::getAnnouncedName ( ) const

Get announced name.

Exceptions
ErrorPrefixAnnouncement is empty

Definition at line 69 of file prefix-announcement.cpp.

shared_ptr<const Data> ndn::lp::PrefixAnnouncement::getData ( ) const
inline

Definition at line 75 of file prefix-announcement.hpp.

PrefixAnnouncement & ndn::lp::PrefixAnnouncement::setData ( shared_ptr< const Data data)

Definition at line 83 of file prefix-announcement.cpp.

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

Definition at line 58 of file prefix-announcement.cpp.

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

Definition at line 46 of file prefix-announcement.cpp.