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 36 of file control-response.hpp.
ndn::mgmt::ControlResponse::ControlResponse | ( | ) |
Definition at line 39 of file control-response.cpp.
Referenced by ndn::mgmt::ControlResponse::Error::Error().
ndn::mgmt::ControlResponse::ControlResponse | ( | uint32_t | code, |
const std::string & | text | ||
) |
Definition at line 44 of file control-response.cpp.
|
explicit |
Definition at line 50 of file control-response.cpp.
References wireDecode().
|
inline |
Definition at line 89 of file control-response.hpp.
References m_code.
Referenced by ndn::nfd::Controller::Controller(), ndn::mgmt::ControlResponse::Error::Error(), and ndn::mgmt::operator<<().
|
inline |
Definition at line 95 of file control-response.hpp.
References m_code, m_wire, and ndn::Block::reset().
Referenced by ndn::mgmt::ControlResponse::Error::Error(), and nfd::rib::RibManager::setConfigFile().
|
inline |
Definition at line 103 of file control-response.hpp.
References m_text.
Referenced by ndn::nfd::Controller::Controller(), ndn::mgmt::ControlResponse::Error::Error(), and ndn::mgmt::operator<<().
|
inline |
Definition at line 109 of file control-response.hpp.
References m_text, m_wire, and ndn::Block::reset().
Referenced by ndn::mgmt::ControlResponse::Error::Error(), and nfd::rib::RibManager::setConfigFile().
|
inline |
Definition at line 117 of file control-response.hpp.
References m_body.
Referenced by ndn::nfd::Controller::Controller(), and ndn::mgmt::ControlResponse::Error::Error().
|
inline |
Definition at line 123 of file control-response.hpp.
References ndn::Block::encode(), m_body, m_wire, ndn::mgmt::operator<<(), and ndn::Block::reset().
Referenced by ndn::mgmt::ControlResponse::Error::Error(), and nfd::rib::RibManager::setConfigFile().
const Block & ndn::mgmt::ControlResponse::wireEncode | ( | ) | const |
Definition at line 56 of file control-response.cpp.
References ndn::tlv::nfd::ControlResponse, ndn::encoding::dataBlock(), ndn::Block::encode(), ndn::Block::hasWire(), m_body, m_code, m_text, m_wire, ndn::encoding::nonNegativeIntegerBlock(), ndn::Block::push_back(), ndn::tlv::nfd::StatusCode, and ndn::tlv::nfd::StatusText.
Referenced by ndn::mgmt::ControlResponse::Error::Error(), ndn::mgmt::StatusDatasetContext::reject(), and ndn::mgmt::Dispatcher::removeTopPrefix().
void ndn::mgmt::ControlResponse::wireDecode | ( | const Block & | block | ) |
Definition at line 75 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::Block::parse(), ndn::encoding::readNonNegativeInteger(), ndn::tlv::nfd::StatusCode, ndn::tlv::nfd::StatusText, and ndn::Block::type().
Referenced by ndn::nfd::Controller::Controller(), ControlResponse(), and ndn::mgmt::ControlResponse::Error::Error().
|
protected |
Definition at line 81 of file control-response.hpp.
Referenced by getCode(), setCode(), wireDecode(), and wireEncode().
|
protected |
Definition at line 82 of file control-response.hpp.
Referenced by getText(), setText(), wireDecode(), and wireEncode().
|
protected |
Definition at line 83 of file control-response.hpp.
Referenced by getBody(), setBody(), wireDecode(), and wireEncode().
|
mutableprotected |
Definition at line 85 of file control-response.hpp.
Referenced by setBody(), setCode(), setText(), wireDecode(), and wireEncode().