ControlCommand response. More...
#include <control-response.hpp>
Classes | |
class | Error |
Public Member Functions | |
ControlResponse () | |
ControlResponse (uint32_t code, const std::string &text) | |
ControlResponse (const Block &block) | |
uint32_t | getCode () const |
ControlResponse & | setCode (uint32_t code) |
const std::string & | getText () const |
ControlResponse & | setText (const std::string &text) |
const Block & | getBody () const |
ControlResponse & | setBody (const Block &body) |
const Block & | wireEncode () const |
void | wireDecode (const Block &block) |
Protected Attributes | |
uint32_t | m_code |
std::string | m_text |
Block | m_body |
Block | m_wire |
ControlCommand response.
Definition at line 32 of file control-response.hpp.
ndn::mgmt::ControlResponse::ControlResponse | ( | ) |
Definition at line 35 of file control-response.cpp.
ndn::mgmt::ControlResponse::ControlResponse | ( | uint32_t | code, |
const std::string & | text | ||
) |
Definition at line 40 of file control-response.cpp.
|
explicit |
Definition at line 46 of file control-response.cpp.
References wireDecode().
|
inline |
Definition at line 81 of file control-response.hpp.
References m_code.
Referenced by ndn::mgmt::operator<<().
|
inline |
Definition at line 87 of file control-response.hpp.
References m_code, m_wire, and ndn::Block::reset().
|
inline |
Definition at line 95 of file control-response.hpp.
References m_text.
Referenced by ndn::mgmt::operator<<().
|
inline |
Definition at line 101 of file control-response.hpp.
References m_text, m_wire, and ndn::Block::reset().
|
inline |
Definition at line 109 of file control-response.hpp.
References m_body.
|
inline |
Definition at line 115 of file control-response.hpp.
References ndn::Block::encode(), m_body, m_wire, and ndn::Block::reset().
const Block & ndn::mgmt::ControlResponse::wireEncode | ( | ) | const |
Definition at line 52 of file control-response.cpp.
References ndn::tlv::nfd::ControlResponse, ndn::Block::encode(), ndn::Block::hasWire(), m_body, m_code, m_text, m_wire, ndn::encoding::makeNonNegativeIntegerBlock(), ndn::encoding::makeStringBlock(), ndn::Block::push_back(), ndn::tlv::nfd::StatusCode, and ndn::tlv::nfd::StatusText.
void ndn::mgmt::ControlResponse::wireDecode | ( | const Block & | block | ) |
Definition at line 70 of file control-response.cpp.
References ndn::tlv::nfd::ControlResponse, ndn::Block::elements_begin(), ndn::Block::elements_end(), m_body, m_code, m_text, m_wire, NDN_THROW, ndn::Block::parse(), ndn::encoding::readString(), ndn::tlv::nfd::StatusCode, ndn::tlv::nfd::StatusText, and ndn::Block::type().
Referenced by ControlResponse().
|
protected |
Definition at line 73 of file control-response.hpp.
Referenced by getCode(), setCode(), wireDecode(), and wireEncode().
|
protected |
Definition at line 74 of file control-response.hpp.
Referenced by getText(), setText(), wireDecode(), and wireEncode().
|
protected |
Definition at line 75 of file control-response.hpp.
Referenced by getBody(), setBody(), wireDecode(), and wireEncode().
|
mutableprotected |
Definition at line 77 of file control-response.hpp.
Referenced by setBody(), setCode(), setText(), wireDecode(), and wireEncode().