23 #include "../../util/concepts.hpp" 29 : m_datasetName(datasetName)
40 this->addParameters(name);
45 StatusDataset::addParameters(
Name& 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);
provides common functionality among FaceDataset and FaceQueryDataset
indicates reassembled payload cannot be parsed as ResultType
ForwarderGeneralStatusDataset()
represents NFD General Status dataset
size_t wireEncode(EncodingImpl< TAG > &encoder) const
prepend FaceQueryFilter to the encoder
Copyright (c) 2013-2017 Regents of the University of California.
ResultType parseResult(ConstBufferPtr payload) const
static std::tuple< bool, Block > fromBuffer(ConstBufferPtr buffer, size_t offset)
Try to parse Block from a wire buffer.
ResultType parseResult(ConstBufferPtr payload) const
FaceDatasetBase(const PartialName &datasetName)
Represents a TLV element of NDN packet format.
std::vector< ChannelStatus > ResultType
std::vector< StrategyChoice > ResultType
ResultType parseResult(ConstBufferPtr payload) const
base class of NFD StatusDataset
Name & append(const Component &component)
Append a component.
ResultType parseResult(ConstBufferPtr payload) const
size_t size() const
Get size of encoded wire, including Type-Length-Value.
std::vector< FibEntry > ResultType
std::vector< RibEntry > ResultType
std::vector< FaceStatus > ResultType
StatusDataset(const PartialName &datasetName)
constructs a StatusDataset instance with given sub-prefix
Name getDatasetPrefix(const Name &prefix) const
constructs a name prefix for the dataset
Represents an absolute name.
represents the CS Information dataset
represents Face Query Filter
ResultType parseResult(ConstBufferPtr payload) const
static std::vector< T > parseDatasetVector(ConstBufferPtr payload)
parses elements into a vector of T
FaceQueryDataset(const FaceQueryFilter &filter)
ResultType parseResult(ConstBufferPtr payload) const
a concept check for TLV abstraction with .wireDecode method and constructible from Block ...
ResultType parseResult(ConstBufferPtr payload) const
shared_ptr< const Buffer > ConstBufferPtr