29 : m_datasetName(datasetName)
40 this->addParameters(name);
45 StatusDataset::addParameters(
Name&)
const 62 std::vector<T> result;
65 while (offset < payload->
size()) {
73 offset += block.
size();
74 result.emplace_back(block);
99 return parseDatasetVector<FaceStatus>(payload);
114 FaceQueryDataset::addParameters(
Name&
name)
const 127 return parseDatasetVector<ChannelStatus>(payload);
138 return parseDatasetVector<FibEntry>(payload);
160 return parseDatasetVector<StrategyChoice>(payload);
171 return parseDatasetVector<RibEntry>(payload);
ResultType parseResult(ConstBufferPtr payload) const
provides common functionality among FaceDataset and FaceQueryDataset
indicates reassembled payload cannot be parsed as ResultType
ForwarderGeneralStatusDataset()
static NDN_CXX_NODISCARD std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset=0)
Try to parse Block from a wire buffer.
represents NFD General Status dataset
Copyright (c) 2011-2015 Regents of the University of California.
FaceDatasetBase(const PartialName &datasetName)
Represents a TLV element of the NDN packet format.
std::vector< ChannelStatus > ResultType
std::vector< StrategyChoice > ResultType
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
Name & append(const Component &component)
Append a component.
ResultType parseResult(ConstBufferPtr payload) const
size_t size() const
Return the size of the encoded wire, i.e., of the whole TLV.
std::vector< FibEntry > ResultType
Copyright (c) 2011-2015 Regents of the University of California.
std::vector< RibEntry > ResultType
std::vector< FaceStatus > ResultType
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
static std::vector< T > parseDatasetVector(const ConstBufferPtr &payload)
parses elements into a vector of T
ResultType parseResult(ConstBufferPtr payload) const
Represents an absolute name.
represents the CS Information dataset
ResultType parseResult(ConstBufferPtr payload) const
represents Face Query Filter
ResultType parseResult(ConstBufferPtr payload) const
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
span_constexpr std::size_t size(span< T, Extent > const &spn)
FaceQueryDataset(const FaceQueryFilter &filter)
a concept check for TLV abstraction with .wireDecode method and constructible from Block ...
ResultType parseResult(ConstBufferPtr payload) const
shared_ptr< const Buffer > ConstBufferPtr