represents an item in NFD Channel dataset More...
#include <channel-status.hpp>
Classes | |
class | Error |
Public Member Functions | |
ChannelStatus () | |
ChannelStatus (const Block &payload) | |
template<encoding::Tag TAG> | |
size_t | wireEncode (EncodingImpl< TAG > &encoder) const |
const Block & | wireEncode () const |
void | wireDecode (const Block &wire) |
const std::string & | getLocalUri () const |
ChannelStatus & | setLocalUri (const std::string localUri) |
represents an item in NFD Channel dataset
Definition at line 35 of file channel-status.hpp.
|
default |
|
explicit |
Definition at line 34 of file channel-status.cpp.
References wireDecode().
size_t ndn::nfd::ChannelStatus::wireEncode | ( | EncodingImpl< TAG > & | encoder | ) | const |
Definition at line 41 of file channel-status.cpp.
References ndn::tlv::nfd::ChannelStatus, ndn::tlv::nfd::LocalUri, ndn::nfd::NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(), and ndn::encoding::prependStringBlock().
Referenced by nfd::makeFaceStatus().
const Block & ndn::nfd::ChannelStatus::wireEncode | ( | ) | const |
Definition at line 53 of file channel-status.cpp.
References ndn::Block::hasWire().
void ndn::nfd::ChannelStatus::wireDecode | ( | const Block & | wire | ) |
Definition at line 69 of file channel-status.cpp.
References ndn::tlv::nfd::ChannelStatus, ndn::Block::elements_begin(), ndn::Block::elements_end(), ndn::tlv::nfd::LocalUri, NDN_THROW, ndn::Block::parse(), ndn::encoding::readString(), and ndn::Block::type().
Referenced by ChannelStatus().
|
inline |
Definition at line 61 of file channel-status.hpp.
References ndn::nfd::NDN_CXX_DECLARE_WIRE_ENCODE_INSTANTIATIONS(), ndn::nfd::operator==(), and setLocalUri().
Referenced by ndn::nfd::operator<<(), and ndn::nfd::operator==().
ChannelStatus & ndn::nfd::ChannelStatus::setLocalUri | ( | const std::string | localUri | ) |
Definition at line 89 of file channel-status.cpp.
References ndn::Block::reset().
Referenced by getLocalUri(), and nfd::makeFaceStatus().