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-2017 Regents of the University of California.
const Block & getBody() const
Represents a TLV element of NDN 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 sub elements into TLV-VALUE.
ControlResponse & setCode(uint32_t code)
represents an error in TLV encoding or decoding