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);
void parse() const
Parse TLV-VALUE into sub-elements.
Represents a TLV element of the NDN packet format.
const Block & wireEncode() const
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()
Block makeNonNegativeIntegerBlock(uint32_t type, uint64_t value)
Create a TLV block containing a non-negative integer.
element_const_iterator elements_end() const
Equivalent to elements().end()
Block makeStringBlock(uint32_t type, const std::string &value)
Create a TLV block containing a string.
void push_back(const Block &element)
Append a sub-element.
std::ostream & operator<<(std::ostream &os, const ControlResponse &response)
void wireDecode(const Block &block)
void encode()
Encode sub-elements into TLV-VALUE.
const std::string & getText() const
uint32_t type() const
Return the TLV-TYPE of the Block.