22 #ifndef NDN_CXX_MGMT_CONTROL_RESPONSE_HPP
23 #define NDN_CXX_MGMT_CONTROL_RESPONSE_HPP
64 setText(
const std::string& text);
Represents a TLV element of the NDN packet format.
void wireDecode(const Block &block)
friend std::ostream & operator<<(std::ostream &os, const ControlResponse &response)
const Block & wireEncode() const
const Block & getBody() const
ControlResponse & setBody(const Block &body)
ControlResponse & setText(const std::string &text)
const std::string & getText() const
ControlResponse & setCode(uint32_t code)
Represents an error in TLV encoding or decoding.
Error(const char *expectedType, uint32_t actualType)