ndn::mgmt::ControlResponse Class Reference

ControlCommand response. More...

#include <control-response.hpp>

+ Collaboration diagram for ndn::mgmt::ControlResponse:

Classes

class  Error
 

Public Member Functions

 ControlResponse ()
 
 ControlResponse (uint32_t code, const std::string &text)
 
 ControlResponse (const Block &block)
 
const BlockgetBody () const
 
uint32_t getCode () const
 
const std::string & getText () const
 
ControlResponsesetBody (const Block &body)
 
ControlResponsesetCode (uint32_t code)
 
ControlResponsesetText (const std::string &text)
 
void wireDecode (const Block &block)
 
const BlockwireEncode () const
 

Protected Attributes

Block m_body
 
uint32_t m_code
 
std::string m_text
 
Block m_wire
 

Detailed Description

ControlCommand response.

Definition at line 32 of file control-response.hpp.

Constructor & Destructor Documentation

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.

ndn::mgmt::ControlResponse::ControlResponse ( const Block block)
explicit

Definition at line 46 of file control-response.cpp.

Member Function Documentation

const Block & ndn::mgmt::ControlResponse::getBody ( ) const
inline

Definition at line 113 of file control-response.hpp.

uint32_t ndn::mgmt::ControlResponse::getCode ( ) const
inline

Definition at line 85 of file control-response.hpp.

const std::string & ndn::mgmt::ControlResponse::getText ( ) const
inline

Definition at line 99 of file control-response.hpp.

ControlResponse & ndn::mgmt::ControlResponse::setBody ( const Block body)
inline

Definition at line 119 of file control-response.hpp.

ControlResponse & ndn::mgmt::ControlResponse::setCode ( uint32_t  code)
inline

Definition at line 91 of file control-response.hpp.

ControlResponse & ndn::mgmt::ControlResponse::setText ( const std::string &  text)
inline

Definition at line 105 of file control-response.hpp.

void ndn::mgmt::ControlResponse::wireDecode ( const Block block)

Definition at line 70 of file control-response.cpp.

const Block & ndn::mgmt::ControlResponse::wireEncode ( ) const

Definition at line 52 of file control-response.cpp.

Member Data Documentation

Block ndn::mgmt::ControlResponse::m_body
protected

Definition at line 79 of file control-response.hpp.

uint32_t ndn::mgmt::ControlResponse::m_code
protected

Definition at line 77 of file control-response.hpp.

std::string ndn::mgmt::ControlResponse::m_text
protected

Definition at line 78 of file control-response.hpp.

Block ndn::mgmt::ControlResponse::m_wire
mutableprotected

Definition at line 81 of file control-response.hpp.