22 #ifndef NDN_MGMT_CONTROL_RESPONSE_HPP 23 #define NDN_MGMT_CONTROL_RESPONSE_HPP 58 setText(
const std::string& text);
94 inline const std::string&
129 #endif // NDN_MGMT_CONTROL_RESPONSE_HPP
const Block & getBody() const
Represents a TLV element of NDN packet format.
const Block & wireEncode() const
void reset() noexcept
Reset the Block to a default-constructed state.
std::ostream & operator<<(std::ostream &os, const ControlResponse &response)
ControlResponse & setText(const std::string &text)
ControlResponse & setBody(const Block &body)
void wireDecode(const Block &block)
void encode()
Encode sub-elements into TLV-VALUE.
const std::string & getText() const
ControlResponse & setCode(uint32_t code)
Error(const char *expectedType, uint32_t actualType)
represents an error in TLV encoding or decoding