22 #ifndef NDN_MGMT_CONTROL_RESPONSE_HPP
23 #define NDN_MGMT_CONTROL_RESPONSE_HPP
25 #include "../encoding/block.hpp"
62 setText(
const std::string& text);
98 inline const std::string&
133 #endif // NDN_MGMT_CONTRO_RESPONSE_HPP
Copyright (c) 2013-2016 Regents of the University of California.
const Block & getBody() const
Class representing a wire element of NDN-TLV packet format.
const Block & wireEncode() const
const std::string & getText() const
void reset()
Reset wire buffer of the element.
std::ostream & operator<<(std::ostream &os, const ControlResponse &response)
Error(const std::string &what)
ControlResponse & setText(const std::string &text)
ControlResponse & setBody(const Block &body)
void wireDecode(const Block &block)
void encode()
Encode subblocks into wire buffer.
ControlResponse & setCode(uint32_t code)
represents an error in TLV encoding or decoding