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.
element_const_iterator elements_begin() const noexcept
Equivalent to elements().begin().
element_const_iterator elements_end() const noexcept
Equivalent to elements().end().
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.
uint32_t type() const noexcept
Return the TLV-TYPE of the Block.
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)