30 BOOST_CONCEPT_ASSERT((StatusDatasetItem<ChannelStatus>));
39 template<encoding::Tag TAG>
43 size_t totalLength = 0;
45 totalLength += encoder.prependVarNumber(totalLength);
64 m_wire = buffer.block();
92 m_localUri = localUri;
105 return os <<
"Channel(LocalUri: " << status.
getLocalUri() <<
")";
const std::string & getLocalUri() const
const Block & wireEncode() const
void parse() const
Parse TLV-VALUE into sub-elements.
Represents a TLV element of the NDN packet format.
size_t prependStringBlock(EncodingImpl< TAG > &encoder, uint32_t type, const std::string &value)
Prepend a TLV element containing a string.
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
std::string readString(const Block &block)
Read TLV-VALUE of a TLV element as a string.
element_const_iterator elements_begin() const
Equivalent to elements().begin()
element_const_iterator elements_end() const
Equivalent to elements().end()
void reset() noexcept
Reset the Block to a default-constructed state.
bool operator==(const ChannelStatus &a, const ChannelStatus &b)
#define NDN_CXX_DEFINE_WIRE_ENCODE_INSTANTIATIONS(ClassName)
std::ostream & operator<<(std::ostream &os, FaceScope faceScope)
represents an item in NFD Channel dataset
void wireDecode(const Block &wire)
EncodingImpl< EncoderTag > EncodingBuffer
uint32_t type() const
Return the TLV-TYPE of the Block.
EncodingImpl< EstimatorTag > EncodingEstimator
ChannelStatus & setLocalUri(const std::string localUri)