7 #ifndef NDN_MANAGEMENT_NDND_STATUS_RESPONSE_HPP
8 #define NDN_MANAGEMENT_NDND_STATUS_RESPONSE_HPP
10 #include "../encoding/block.hpp"
11 #include "../encoding/tlv-ndnd.hpp"
45 inline const std::string&
49 setInfo(
const std::string& info);
77 inline const std::string&
122 info_.assign(reinterpret_cast<const char*>(val->value()), val->value_size());
136 #endif // NDN_MANAGEMENT_NDND_STATUS_RESPONSE_HPP
Block nonNegativeIntegerBlock(uint32_t type, uint64_t value)
element_const_iterator find(uint32_t type) const
void setInfo(const std::string &info)
Class representing wire element of the NDN packet.
uint64_t readNonNegativeInteger(const Block &block)
element_const_iterator elements_end() const
StatusResponse(uint32_t code, const std::string &info)
const std::string & getInfo() const
void wireDecode(const Block &block)
void setCode(uint32_t code)
StatusResponse(const Block &wire)
Create from wire encoding.
const Block & get(uint32_t type) const
Get the first subelement of the requested type.
element_container::const_iterator element_const_iterator
void reset()
Reset wire buffer of the element.
void push_back(const Block &element)
void parse() const
Parse wire buffer into subblocks.
void encode()
Encode subblocks into wire buffer.
const Block & wireEncode() const
Block dataBlock(uint32_t type, const char *data, size_t dataSize)
std::ostream & operator<<(std::ostream &os, const FaceInstance &entry)
bool hasWire() const
Check if the Block has fully encoded wire.