NS-3 based Named Data Networking (NDN) simulator
ndnSIM 2.0: NDN, CCN, CCNx, content centric networks
API Documentation
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)
 
uint32_t getCode () const
 
ControlResponsesetCode (uint32_t code)
 
const std::string & getText () const
 
ControlResponsesetText (const std::string &text)
 
const BlockgetBody () const
 
ControlResponsesetBody (const Block &body)
 
const BlockwireEncode () const
 
void wireDecode (const Block &block)
 

Protected Attributes

uint32_t m_code
 
std::string m_text
 
Block m_body
 
Block m_wire
 

Detailed Description

ControlCommand response.

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

Constructor & Destructor Documentation

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.

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

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

References wireDecode().

Member Function Documentation

uint32_t ndn::mgmt::ControlResponse::getCode ( ) const
inline
ControlResponse & ndn::mgmt::ControlResponse::setCode ( uint32_t  code)
inline
const std::string & ndn::mgmt::ControlResponse::getText ( ) const
inline
ControlResponse & ndn::mgmt::ControlResponse::setText ( const std::string &  text)
inline
const Block & ndn::mgmt::ControlResponse::getBody ( ) const
inline
ControlResponse & ndn::mgmt::ControlResponse::setBody ( const Block body)
inline

Member Data Documentation

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

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

Referenced by getCode(), setCode(), wireDecode(), and wireEncode().

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

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

Referenced by getText(), setText(), wireDecode(), and wireEncode().

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

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

Referenced by getBody(), setBody(), wireDecode(), and wireEncode().

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

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

Referenced by setBody(), setCode(), setText(), wireDecode(), and wireEncode().


The documentation for this class was generated from the following files: