30 BOOST_CONCEPT_ASSERT((WireEncodable<ControlResponse>));
 
   31 BOOST_CONCEPT_ASSERT((WireDecodable<ControlResponse>));
 
   32 static_assert(std::is_base_of<tlv::Error, ControlResponse::Error>::value,
 
   33               "ControlResponse::Error must inherit from tlv::Error");
 
   82   m_code = readNonNegativeIntegerAs<uint32_t>(*val);
 
Represents a TLV element of the NDN packet format.
 
uint32_t type() const
Return the TLV-TYPE of the Block.
 
bool hasWire() const noexcept
Check if the Block contains a fully encoded wire representation.
 
void push_back(const Block &element)
Append a sub-element.
 
void encode()
Encode sub-elements into TLV-VALUE.
 
element_const_iterator elements_end() const
Equivalent to elements().end()
 
element_const_iterator elements_begin() const
Equivalent to elements().begin()
 
void parse() const
Parse TLV-VALUE into sub-elements.
 
void wireDecode(const Block &block)
 
const Block & wireEncode() const
 
const std::string & getText() const
 
Block makeNonNegativeIntegerBlock(uint32_t type, uint64_t value)
Create a TLV block containing a non-negative integer.
 
std::string readString(const Block &block)
Read TLV-VALUE of a TLV element as a string.
 
Block makeStringBlock(uint32_t type, const std::string &value)
Create a TLV block containing a string.
 
std::ostream & operator<<(std::ostream &os, const ControlResponse &response)